From 5827b53c6cc4a34850c83ef22ceb63b72d4d09e8 Mon Sep 17 00:00:00 2001 From: Swarsel Date: Sun, 15 Dec 2024 20:27:56 +0100 Subject: [PATCH] feat: ssh agentForward for root (and other users) --- SwarselSystems.org | 3 +++ profiles/server/nixos/ssh.nix | 3 +++ 2 files changed, 6 insertions(+) diff --git a/SwarselSystems.org b/SwarselSystems.org index ff9057b..087bd65 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -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 diff --git a/profiles/server/nixos/ssh.nix b/profiles/server/nixos/ssh.nix index 48e98ab..5b0d371 100644 --- a/profiles/server/nixos/ssh.nix +++ b/profiles/server/nixos/ssh.nix @@ -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 + ''; }