nixos/sudo-rs: uniformize ssh-agent auth behaviour with security.sudo

(cherry picked from commit cd42b18a2c)
This commit is contained in:
nicoo
2023-10-22 19:19:56 +00:00
committed by github-actions[bot]
parent 3f7b1a8758
commit 6c19b06361

View File

@@ -4,13 +4,10 @@ with lib;
let
inherit (pkgs) sudo sudo-rs;
cfg = config.security.sudo-rs;
enableSSHAgentAuth =
with config.security;
pam.enableSSHAgentAuth && pam.sudo.sshAgentAuth;
inherit (config.security.pam) enableSSHAgentAuth;
inherit (pkgs) sudo sudo-rs;
usingMillersSudo = cfg.package.pname == sudo.pname;
usingSudoRs = cfg.package.pname == sudo-rs.pname;