summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/linux.nix2
-rw-r--r--lib/ssh.nix3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/linux.nix b/lib/linux.nix
index 77d48d3..86b43ff 100644
--- a/lib/linux.nix
+++ b/lib/linux.nix
@@ -331,8 +331,6 @@ in
verbose = true;
extraConfig = ''
allow-emacs-pinentry
- # StreamLocalBindUnlink yes
- # RemoteForward /home/ben/.gnupg/S.gpg-agent /home/ben/.gnupg/S.gpg-agent.extra
'';
};
};
diff --git a/lib/ssh.nix b/lib/ssh.nix
index 29cb677..41c531c 100644
--- a/lib/ssh.nix
+++ b/lib/ssh.nix
@@ -7,6 +7,9 @@ in {
controlMaster = "auto";
enable = true;
forwardAgent = true;
+ extraConfig = ''
+ RemoteForward %d/.gnupg/S.gpg-agent ''${HOME}/.gnupg/S.gpg-agent.extra
+ '';
matchBlocks = {
"github.com" = {
hostname = "github.com";