diff options
author | sils <sils@sils.li> | 2023-11-16 20:20:57 +0100 |
---|---|---|
committer | sils <sils@sils.li> | 2023-11-16 20:20:57 +0100 |
commit | 396b95588b201ef711a326febbfdb257b91831fb (patch) | |
tree | a177d9d1c570ddf213e648c8d2f10ae70249531d | |
parent | feat(u/sils/gpg): add silent zsh init with gpg-agent (diff) | |
download | nix-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.nix | 2 |
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 ''; } |