gpg-agent: do updatestartuptty only when SSH is enabled
Inspired by #163.
(cherry picked from commit bc50202d0d
)
This commit is contained in:
parent
337168f47e
commit
967d0f93a2
|
@ -9,8 +9,9 @@ let
|
||||||
gpgInitStr = ''
|
gpgInitStr = ''
|
||||||
GPG_TTY="$(tty)"
|
GPG_TTY="$(tty)"
|
||||||
export GPG_TTY
|
export GPG_TTY
|
||||||
${pkgs.gnupg}/bin/gpg-connect-agent updatestartuptty /bye > /dev/null
|
''
|
||||||
'';
|
+ optionalString cfg.enableSshSupport
|
||||||
|
"${pkgs.gnupg}/bin/gpg-connect-agent updatestartuptty /bye > /dev/null";
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue