From 3e48a931993345db982d3c2cf95aeaee4515f90a Mon Sep 17 00:00:00 2001 From: Swarsel Date: Mon, 16 Dec 2024 11:38:57 +0100 Subject: [PATCH] feat: root ssh-agent for local machines --- SwarselSystems.org | 3 +++ profiles/common/nixos/polkit.nix | 3 +++ 2 files changed, 6 insertions(+) diff --git a/SwarselSystems.org b/SwarselSystems.org index 175e9e6..11724c8 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -3751,6 +3751,9 @@ Needed for control over system-wide privileges etc. }; security.polkit.enable = true; + security.sudo.extraConfig = '' + Defaults env_keep+=SSH_AUTH_SOCK + ''; } #+end_src diff --git a/profiles/common/nixos/polkit.nix b/profiles/common/nixos/polkit.nix index 2338d69..4d34454 100644 --- a/profiles/common/nixos/polkit.nix +++ b/profiles/common/nixos/polkit.nix @@ -9,5 +9,8 @@ _: }; security.polkit.enable = true; + security.sudo.extraConfig = '' + Defaults env_keep+=SSH_AUTH_SOCK + ''; }