summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-11-16 20:20:57 +0100
committersils <sils@sils.li>2023-11-16 20:20:57 +0100
commit396b95588b201ef711a326febbfdb257b91831fb (patch)
treea177d9d1c570ddf213e648c8d2f10ae70249531d
parentfeat(u/sils/gpg): add silent zsh init with gpg-agent (diff)
downloadnix-config-396b95588b201ef711a326febbfdb257b91831fb.tar.gz
nix-config-396b95588b201ef711a326febbfdb257b91831fb.zip
feat(u/sils/gpg): start gpg-agent on shell init
Diffstat (limited to '')
-rw-r--r--users/sils/gpg/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/users/sils/gpg/default.nix b/users/sils/gpg/default.nix
index 2c166d0..cb976db 100644
--- a/users/sils/gpg/default.nix
+++ b/users/sils/gpg/default.nix
@@ -16,5 +16,7 @@
   programs.zsh.initExtraFirst = lib.mkBefore ''
     current_tty="$(tty)"
     tty() { echo "$current_tty"; }
+    SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
+    gpg-connect-agent /bye
   '';
 }