diff options
author | nicoo <nicoo@mur.at> | 2023-10-25 23:56:07 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2023-10-26 19:00:25 +0000 |
commit | 6e15779fda5c92bc77425abcf3532a86b5f813b1 (patch) | |
tree | 1d7ea0703931a2d2127d5d0ecce4f73f46d65d5e /nixos/modules/security | |
parent | c8c3423a38e672dd2fd63e9ccfb372639a63ca27 (diff) |
nixos/sudo: fix `security.sudo.package`
Diffstat (limited to 'nixos/modules/security')
-rw-r--r-- | nixos/modules/security/sudo.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/security/sudo.nix b/nixos/modules/security/sudo.nix index d225442773c69..c665c15242a53 100644 --- a/nixos/modules/security/sudo.nix +++ b/nixos/modules/security/sudo.nix @@ -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; }; |