From 396b95588b201ef711a326febbfdb257b91831fb Mon Sep 17 00:00:00 2001 From: sils Date: Thu, 16 Nov 2023 20:20:57 +0100 Subject: feat(u/sils/gpg): start gpg-agent on shell init --- users/sils/gpg/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'users') 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 ''; } -- cgit 1.4.1