diff options
author | sefidel <contact@sefidel.net> | 2025-01-19 09:10:46 +1000 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2025-01-19 09:12:38 +1000 |
commit | 909537bcd4e4dea531fd0041364a9eadcd40b583 (patch) | |
tree | 4ee32b786a8e71874e81e8ef134234fa09b60f82 | |
parent | f9272fc6ffce3b7c246e7e9b9dbcd975718e3c16 (diff) | |
download | nixrc-909537bcd4e4dea531fd0041364a9eadcd40b583.tar.gz nixrc-909537bcd4e4dea531fd0041364a9eadcd40b583.zip |
fix(home/base): always set SSH_AUTH_SOCK on darwin when gpg-agent is enabled
-rw-r--r-- | home/profiles/base/default.nix | 3 |
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"; |