Merge pull request #263475 from nbraud/nixos/sudo-bugfix

nixos/sudo: fix `security.sudo.package`
This commit is contained in:
Maximilian Bosch 2023-11-03 11:26:03 +01:00 committed by GitHub
commit 225d785e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,6 @@ let
cfg = config.security.sudo;
inherit (pkgs) sudo;
toUserString = user: if (isInt user) then "#${toString user}" else "${user}";
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; };