darwin: set SSH auth socket just once
Alan Pearce alan@alanpearce.eu
Mon, 30 Oct 2023 09:34:29 +0100
1 files changed, 1 insertions(+), 6 deletions(-)
jump to
M user/settings/darwin.nix → user/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" ] ''