about summary refs log tree commit diff
path: root/home/profiles
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-07-20 09:54:35 +0900
committersefidel <contact@sefidel.net>2023-07-20 09:54:57 +0900
commite49a0927513033b59d7bf6f9e5a2d545fdcd52d8 (patch)
tree0910f089d18855db74ae9d43948991a9ffee8dfd /home/profiles
parent2728393ce6bb3e5f24805ddaf9dd7ce47b49c208 (diff)
downloadnixrc-e49a0927513033b59d7bf6f9e5a2d545fdcd52d8.tar.gz
nixrc-e49a0927513033b59d7bf6f9e5a2d545fdcd52d8.zip
fix(profiles/base-darwin): fix ssh auth using pgp key
Diffstat (limited to 'home/profiles')
-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 = {