mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/sudo: fix security.sudo.package
This commit is contained in:
parent
c8c3423a38
commit
6e15779fda
1 changed files with 1 additions and 3 deletions
|
@ -6,8 +6,6 @@ let
|
||||||
|
|
||||||
cfg = config.security.sudo;
|
cfg = config.security.sudo;
|
||||||
|
|
||||||
inherit (pkgs) sudo;
|
|
||||||
|
|
||||||
toUserString = user: if (isInt user) then "#${toString user}" else "${user}";
|
toUserString = user: if (isInt user) then "#${toString user}" else "${user}";
|
||||||
toGroupString = group: if (isInt group) then "%#${toString group}" else "%${group}";
|
toGroupString = group: if (isInt group) then "%#${toString group}" else "%${group}";
|
||||||
|
|
||||||
|
@ -247,7 +245,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [ sudo ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
security.pam.services.sudo = { sshAgentAuth = true; usshAuth = true; };
|
security.pam.services.sudo = { sshAgentAuth = true; usshAuth = true; };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue