diff options
author | Robert Helgesson <robert@rycee.net> | 2018-03-04 22:18:17 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2018-03-04 22:20:35 +0100 |
commit | bc50202d0d1be0dbebcab712e04ea8d3dcbacfe2 (patch) | |
tree | f1a1e45dc40b21b1817ddae8bd20bf6471db3905 /modules/services/gpg-agent.nix | |
parent | 8fc8e158e2dcb4cd83dbf77011ce2a2633437dd5 (diff) |
gpg-agent: do updatestartuptty only when SSH is enabled
Inspired by #163.
Diffstat (limited to 'modules/services/gpg-agent.nix')
-rw-r--r-- | modules/services/gpg-agent.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/services/gpg-agent.nix b/modules/services/gpg-agent.nix index f193b564332..ea96312f34a 100644 --- a/modules/services/gpg-agent.nix +++ b/modules/services/gpg-agent.nix @@ -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 |