mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 18:59:47 +01:00
gpg-agent: add zsh support
This commit is contained in:
parent
42f5d4404d
commit
42ae135d38
1 changed files with 8 additions and 5 deletions
|
@ -6,6 +6,12 @@ let
|
||||||
|
|
||||||
cfg = config.services.gpg-agent;
|
cfg = config.services.gpg-agent;
|
||||||
|
|
||||||
|
gpgInitStr = ''
|
||||||
|
GPG_TTY="$(tty)"
|
||||||
|
export GPG_TTY
|
||||||
|
gpg-connect-agent updatestartuptty /bye > /dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -44,11 +50,8 @@ in
|
||||||
SSH_AUTH_SOCK = "\${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh";
|
SSH_AUTH_SOCK = "\${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.bash.initExtra = ''
|
programs.bash.initExtra = gpgInitStr;
|
||||||
GPG_TTY="$(tty)"
|
programs.zsh.initExtra = gpgInitStr;
|
||||||
export GPG_TTY
|
|
||||||
gpg-connect-agent updatestartuptty /bye > /dev/null
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The systemd units below are direct translations of the
|
# The systemd units below are direct translations of the
|
||||||
|
|
Loading…
Reference in a new issue