all repos — nixfiles @ 1efca3062d1199190e980a26715d35060fa7fb6a

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

darwin: set SSH auth socket just once

Alan Pearce
commit

1efca3062d1199190e980a26715d35060fa7fb6a

parent

c597162b9f01b04e85ca603605926184508bcc0e

1 file changed, 1 insertion(+), 6 deletions(-)

jump to
M user/settings/darwin.nixuser/settings/darwin.nix
@@ -46,8 +46,6 @@ "/bin/launchctl"
"setenv" "XDG_CACHE_HOME" config.xdg.cacheHome - "SSH_AUTH_SOCK" - config.home.sessionVariables.SSH_AUTH_SOCK ]; RunAtLoad = true; StandardErrorPath = "/dev/null";
@@ -119,11 +117,8 @@
stat = "stat -x"; }; - home.sessionVariables = { - SSH_AUTH_SOCK = "~/.strongbox/agent.sock"; - }; programs.ssh.extraConfig = '' - IdentityAgent ${config.home.sessionVariables.SSH_AUTH_SOCK} + IdentityAgent "~/.strongbox/agent.sock" ''; home.activation.linkStrongboxSSHAgentSocket = lib.hm.dag.entryAfter [ "writeBoundary" ] ''