diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2023-11-03 11:26:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 11:26:03 +0100 |
commit | 225d785e7de16e618116d6eaa9df89805d5d35f3 (patch) | |
tree | 9796d7285f2697760e742d07c98550b7b8ebc6d6 /nixos/modules/security | |
parent | 098add965ad57f0e0652e4640dc93d8b79abbf03 (diff) | |
parent | 6e15779fda5c92bc77425abcf3532a86b5f813b1 (diff) |
Merge pull request #263475 from nbraud/nixos/sudo-bugfix
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; }; |