all repos — nixfiles @ 18a880c5aacf074dedcddfbd0d8b6ed75d6e7dc8

System and user configuration, managed by nix and home-manager

darwin: ensure SSH_AUTH_SOCK is always set

Alan Pearce
commit

18a880c5aacf074dedcddfbd0d8b6ed75d6e7dc8

parent

9a725a739d1b4fec2710a4860cbd49c736057be3

1 file changed, 7 insertions(+), 4 deletions(-)

jump to
M user/settings/darwin.nixuser/settings/darwin.nix
@@ -72,7 +72,7 @@ ProcessType = "Background";
LowPriorityBackgroundIO = true; }; }; - set-xdg-cache-home = { + setenv = { enable = true; config = {
@@ -81,6 +81,8 @@ "/bin/launchctl"
"setenv" "XDG_CACHE_HOME" config.xdg.cacheHome + "SSH_AUTH_SOCK" + config.programs.zsh.sessionVariables.SSH_AUTH_SOCK ]; RunAtLoad = true; StandardErrorPath = "/dev/null";
@@ -137,12 +139,13 @@
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 ]]