gpg-agent: do updatestartuptty only when SSH is enabled
Inspired by #163.
This commit is contained in:
parent
8fc8e158e2
commit
bc50202d0d
|
@ -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