diff options
author | nicoo <nicoo@mur.at> | 2023-10-25 23:37:14 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2023-11-25 14:11:24 +0000 |
commit | 9b0a63c2fe2c5a83a6c4b4dcd9172d0968e9da18 (patch) | |
tree | 22d6deafa22d10d3ace08de99b70848e9e5e3e16 /nixos/modules/security/sudo-rs.nix | |
parent | 165b600f01f1d6fc2cde701a50bd033a817912e6 (diff) |
nixos/sudo-rs: Fix bug putting the wrong version of sudo in `environment.systemPackages`
Diffstat (limited to 'nixos/modules/security/sudo-rs.nix')
-rw-r--r-- | nixos/modules/security/sudo-rs.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/security/sudo-rs.nix b/nixos/modules/security/sudo-rs.nix index dcbbc2da64411..1351734c1f933 100644 --- a/nixos/modules/security/sudo-rs.nix +++ b/nixos/modules/security/sudo-rs.nix @@ -7,7 +7,7 @@ let cfg = config.security.sudo-rs; inherit (config.security.pam) enableSSHAgentAuth; - inherit (pkgs) sudo sudo-rs; + inherit (pkgs) sudo-rs; toUserString = user: if (isInt user) then "#${toString user}" else "${user}"; toGroupString = group: if (isInt group) then "%#${toString group}" else "%${group}"; @@ -264,7 +264,7 @@ in }; }; - environment.systemPackages = [ sudo ]; + environment.systemPackages = [ cfg.package ]; security.pam.services.sudo = { sshAgentAuth = true; usshAuth = true; }; security.pam.services.sudo-i = { sshAgentAuth = true; usshAuth = true; }; |