all repos — nixfiles @ 3f3ec69481c0fb86a10ca6c3e19da1a39037087a

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

darwin: move SSH_AUTH_SOCK to home variable
Alan Pearce alan@alanpearce.eu
Sun, 06 Aug 2023 20:12:36 +0200
commit

3f3ec69481c0fb86a10ca6c3e19da1a39037087a

parent

fddeac4ce379b2606520bacf95a5c9b5241c1c55

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M user/settings/darwin.nixuser/settings/darwin.nix
@@ -82,7 +82,7 @@ "setenv"           "XDG_CACHE_HOME"
           config.xdg.cacheHome
           "SSH_AUTH_SOCK"
-          config.programs.zsh.sessionVariables.SSH_AUTH_SOCK
+          config.home.sessionVariables.SSH_AUTH_SOCK
         ];
         RunAtLoad = true;
         StandardErrorPath = "/dev/null";
@@ -146,11 +146,11 @@     stat = "stat -x";
   };
 
-  programs.zsh.sessionVariables = {
+  home.sessionVariables = {
     SSH_AUTH_SOCK = "~/.strongbox/agent.sock";
   };
   programs.ssh.extraConfig = ''
-    IdentityAgent ${config.programs.zsh.sessionVariables.SSH_AUTH_SOCK}
+    IdentityAgent ${config.home.sessionVariables.SSH_AUTH_SOCK}
   '';
 
   programs.zsh.envExtra = ''