about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/profiles/base-darwin/config/zsh.nix4
-rw-r--r--home/profiles/base-darwin/default.nix1
2 files changed, 5 insertions, 0 deletions
diff --git a/home/profiles/base-darwin/config/zsh.nix b/home/profiles/base-darwin/config/zsh.nix
new file mode 100644
index 0000000..06bc1f7
--- /dev/null
+++ b/home/profiles/base-darwin/config/zsh.nix
@@ -0,0 +1,4 @@
+''
+  export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
+  gpgconf --launch gpg-agent
+''
diff --git a/home/profiles/base-darwin/default.nix b/home/profiles/base-darwin/default.nix
index cb8cab3..c09c66b 100644
--- a/home/profiles/base-darwin/default.nix
+++ b/home/profiles/base-darwin/default.nix
@@ -117,6 +117,7 @@ in
         ];
 
         shellAliases = config.programs.zshell.aliases;
+        initExtra = import ./config/zsh.nix;
       };
 
       zshell.aliases = {