Skip to content

Commit

Permalink
feat: ssh agentForward for root (and other users)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swarsel committed Dec 15, 2024
1 parent 97b121d commit 5827b53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SwarselSystems.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions profiles/server/nixos/ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';

}

0 comments on commit 5827b53

Please sign in to comment.