mirror of
https://github.com/nix-community/home-manager
synced 2024-11-17 16:49:45 +01:00
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
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue