1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-29 01:48:31 +02:00

gpg-agent: do updatestartuptty only when SSH is enabled

Inspired by #163.
This commit is contained in:
Robert Helgesson 2018-03-04 22:18:17 +01:00
parent 8fc8e158e2
commit bc50202d0d
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -9,8 +9,9 @@ let
gpgInitStr = ''
GPG_TTY="$(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