feat(sudo): configure sudo with nix modules
This commit is contained in:
parent
79b83cfc70
commit
343f3d481f
1 changed files with 7 additions and 4 deletions
|
@ -8,9 +8,12 @@ in
|
|||
nix.settings.trusted-users = [ "@wheel" ];
|
||||
users.users.${cfg.admin.username}.extraGroups = [ "wheel" ];
|
||||
};
|
||||
flake.modules.darwin.default.security.pam.services.sudo_local = {
|
||||
enable = true;
|
||||
reattach = true;
|
||||
touchIdAuth = true;
|
||||
flake.modules.darwin.default.security = {
|
||||
sudo.extraConfig = "%admin ALL = (ALL) NOPASSWD: ALL";
|
||||
pam.services.sudo_local = {
|
||||
enable = true;
|
||||
reattach = true;
|
||||
touchIdAuth = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue