Skip to content

Commit

Permalink
feat: root ssh-agent for local machines
Browse files Browse the repository at this point in the history
  • Loading branch information
Swarsel committed Dec 16, 2024
1 parent 455d924 commit 3e48a93
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 @@ -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
Expand Down
3 changes: 3 additions & 0 deletions profiles/common/nixos/polkit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ _:
};
security.polkit.enable = true;

security.sudo.extraConfig = ''
Defaults env_keep+=SSH_AUTH_SOCK
'';

}

0 comments on commit 3e48a93

Please sign in to comment.