summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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
   '';
 }