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 + ''; }