all repos — nixfiles @ 1efca3062d1199190e980a26715d35060fa7fb6a

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

darwin: set SSH auth socket just once
Alan Pearce alan@alanpearce.eu
Mon, 30 Oct 2023 09:34:29 +0100
commit

1efca3062d1199190e980a26715d35060fa7fb6a

parent

c597162b9f01b04e85ca603605926184508bcc0e

1 files changed, 1 insertions(+), 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" ] ''