1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 18:29:47 +01:00

gpg-agent: add zsh support

This commit is contained in:
Nikita Uvarov 2017-08-21 15:01:36 +02:00 committed by Robert Helgesson
parent 42f5d4404d
commit 42ae135d38
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -6,6 +6,12 @@ let
cfg = config.services.gpg-agent;
gpgInitStr = ''
GPG_TTY="$(tty)"
export GPG_TTY
gpg-connect-agent updatestartuptty /bye > /dev/null
'';
in
{
@ -44,11 +50,8 @@ in
SSH_AUTH_SOCK = "\${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh";
};
programs.bash.initExtra = ''
GPG_TTY="$(tty)"
export GPG_TTY
gpg-connect-agent updatestartuptty /bye > /dev/null
'';
programs.bash.initExtra = gpgInitStr;
programs.zsh.initExtra = gpgInitStr;
}
# The systemd units below are direct translations of the