security: Enable SSH agent access with sudo
This commit is contained in:
parent
dc49b21189
commit
7f1688a08b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue