about summary refs log tree commit diff
path: root/home/profiles/base/default.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2025-01-19 09:10:46 +1000
committersefidel <contact@sefidel.net>2025-01-19 09:12:38 +1000
commit909537bcd4e4dea531fd0041364a9eadcd40b583 (patch)
tree4ee32b786a8e71874e81e8ef134234fa09b60f82 /home/profiles/base/default.nix
parentf9272fc6ffce3b7c246e7e9b9dbcd975718e3c16 (diff)
downloadnixrc-909537bcd4e4dea531fd0041364a9eadcd40b583.tar.gz
nixrc-909537bcd4e4dea531fd0041364a9eadcd40b583.zip
fix(home/base): always set SSH_AUTH_SOCK on darwin when gpg-agent is enabled
Diffstat (limited to 'home/profiles/base/default.nix')
-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";