From 9fb03fe577a1af1b2d40f1d7f182b0c12ee97430 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 28 Jul 2023 21:01:52 -0400 Subject: Properly forward gpg socket, I think Change-Id: Icd6d3fb8c2e91d7bcd27a314b37456deafbc114e --- lib/ssh.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/ssh.nix') 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"; -- cgit v1.2.3