summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-10-30 09:34:29 +0100
committerAlan Pearce2023-10-30 09:34:29 +0100
commit1efca3062d1199190e980a26715d35060fa7fb6a (patch)
tree032c257594cf74b6a93cb046d1fe1f48dd2c9f24
parentc597162b9f01b04e85ca603605926184508bcc0e (diff)
downloadnixfiles-1efca3062d1199190e980a26715d35060fa7fb6a.tar.lz
nixfiles-1efca3062d1199190e980a26715d35060fa7fb6a.tar.zst
nixfiles-1efca3062d1199190e980a26715d35060fa7fb6a.zip
darwin: set SSH auth socket just once
-rw-r--r--user/settings/darwin.nix7
1 files changed, 1 insertions, 6 deletions
diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix
index a43ab3b5..228c4214 100644
--- a/user/settings/darwin.nix
+++ b/user/settings/darwin.nix
@@ -46,8 +46,6 @@
           "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" ] ''