mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
gpg-agent: add zsh support
This commit is contained in:
parent
42f5d4404d
commit
72cf2df4e2
1 changed files with 7 additions and 5 deletions
|
@ -5,6 +5,11 @@ with lib;
|
|||
let
|
||||
|
||||
cfg = config.services.gpg-agent;
|
||||
gpgInitStr = ''
|
||||
GPG_TTY="$(tty)"
|
||||
export GPG_TTY
|
||||
gpg-connect-agent updatestartuptty /bye > /dev/null
|
||||
'';
|
||||
|
||||
in
|
||||
|
||||
|
@ -44,11 +49,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
|
||||
|
|
Loading…
Reference in a new issue