about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--home/profiles/base/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix
index 4ed37d0..cc6a9ce 100644
--- a/home/profiles/base/default.nix
+++ b/home/profiles/base/default.nix
@@ -23,6 +23,9 @@ in
       # Airport
       AIRPORT_USER = "20963";
       AIRPORT_HOST = "hk-s020.rsync.net";
+
+      # TODO: https://github.com/nix-community/home-manager/pull/5901
+      SSH_AUTH_SOCK = lib.mkIf (config.services.gpg-agent.enable && pkgs.stdenv.isDarwin) "$(${config.programs.gpg.package}/bin/gpgconf --list-dirs agent-ssh-socket)";
     };
 
     home.keyboard.layout = "us";