0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

nixos/sudo: Move support for pam_ssh_agent_auth(8) to PAM's NixOS module

This commit is contained in:
nicoo 2023-09-04 21:06:12 +00:00
parent ad92951579
commit 19e1420e13
2 changed files with 9 additions and 5 deletions

View file

@ -1531,6 +1531,10 @@ in
(map (module: "mr ${module},"))
concatLines
]);
};
security.sudo.extraConfig = optionalString config.security.pam.enableSSHAgentAuth ''
# Keep SSH_AUTH_SOCK so that pam_ssh_agent_auth.so can do its magic.
Defaults env_keep+=SSH_AUTH_SOCK
'';
};
}