From 229f862936feb16334c2ea1855ccee39a4a8b7b9 Mon Sep 17 00:00:00 2001 From: nicoo Date: Wed, 25 Oct 2023 23:37:14 +0000 Subject: [PATCH] nixos/sudo-rs: Fix bug putting the wrong version of sudo in `environment.systemPackages` (cherry picked from commit 9b0a63c2fe2c5a83a6c4b4dcd9172d0968e9da18) --- nixos/modules/security/sudo-rs.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/security/sudo-rs.nix b/nixos/modules/security/sudo-rs.nix index dcbbc2da6441..1351734c1f93 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; }; -- 2.11.4.GIT