security: Enable SSH agent access with sudo

This commit is contained in:
Mikael 2024-08-27 19:00:24 +02:00
parent dc49b21189
commit 7f1688a08b
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -15,6 +15,10 @@
execWheelOnly = true;
wheelNeedsPassword = config.security.pam.services.sudo-rs.fprintAuth
|| config.security.pam.services.sudo-rs.sshAgentAuth;
extraConfig = ''
Defaults env_keep += SSH_AUTH_SOCK
'';
};
services.logind.killUserProcesses = true;