diff options
author | Alan Pearce | 2023-06-23 07:16:40 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-23 07:16:40 +0200 |
commit | 18a880c5aacf074dedcddfbd0d8b6ed75d6e7dc8 (patch) | |
tree | c9592fb04948f027b5b0dcb1c7beb3bab47e9960 /user | |
parent | 9a725a739d1b4fec2710a4860cbd49c736057be3 (diff) | |
download | nixfiles-18a880c5aacf074dedcddfbd0d8b6ed75d6e7dc8.tar.lz nixfiles-18a880c5aacf074dedcddfbd0d8b6ed75d6e7dc8.tar.zst nixfiles-18a880c5aacf074dedcddfbd0d8b6ed75d6e7dc8.zip |
darwin: ensure SSH_AUTH_SOCK is always set
Diffstat (limited to 'user')
-rw-r--r-- | user/settings/darwin.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix index 1ffac101..7c0adb0d 100644 --- a/user/settings/darwin.nix +++ b/user/settings/darwin.nix @@ -72,7 +72,7 @@ LowPriorityBackgroundIO = true; }; }; - set-xdg-cache-home = { + setenv = { enable = true; config = { @@ -81,6 +81,8 @@ "setenv" "XDG_CACHE_HOME" config.xdg.cacheHome + "SSH_AUTH_SOCK" + config.programs.zsh.sessionVariables.SSH_AUTH_SOCK ]; RunAtLoad = true; StandardErrorPath = "/dev/null"; @@ -137,13 +139,14 @@ dig = "dig +noall +answer"; }; + programs.zsh.sessionVariables = { + SSH_AUTH_SOCK = "~/.strongbox/agent.sock"; + }; + programs.zsh.envExtra = '' SHELL_SESSIONS_DISABLE=1 path+=($HOME/Library/Python/3.9/bin) ''; - programs.ssh.extraConfig = '' - IdentityAgent ~/.strongbox/agent.sock - ''; home.activation.linkStrongboxSSHAgentSocket = lib.hm.dag.entryAfter [ "writeBoundary" ] '' if [[ ! -d ~/.strongbox ]] then |