From 909537bcd4e4dea531fd0041364a9eadcd40b583 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 19 Jan 2025 09:10:46 +1000 Subject: fix(home/base): always set SSH_AUTH_SOCK on darwin when gpg-agent is enabled --- home/profiles/base/default.nix | 3 +++ 1 file changed, 3 insertions(+) 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"; -- cgit 1.4.1