feat: ssh agentForward for root (and other users)

This commit is contained in:
Swarsel 2024-12-15 20:27:56 +01:00
parent 97b121d1c5
commit 5827b53c6c
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
2 changed files with 6 additions and 0 deletions

View file

@ -5263,6 +5263,9 @@ Also, the system state version is set here. No need to touch it.
(self + /secrets/keys/ssh/nbl-imba-2.pub)
(self + /secrets/keys/ssh/magicant.pub)
];
security.sudo.extraConfig = ''
Defaults env_keep+=SSH_AUTH_SOCK
'';
}
#+end_src

View file

@ -11,5 +11,8 @@
(self + /secrets/keys/ssh/nbl-imba-2.pub)
(self + /secrets/keys/ssh/magicant.pub)
];
security.sudo.extraConfig = ''
Defaults env_keep+=SSH_AUTH_SOCK
'';
}