diff --git a/modules/services/gpg-agent.nix b/modules/services/gpg-agent.nix index e86a39220..e2ef852f2 100644 --- a/modules/services/gpg-agent.nix +++ b/modules/services/gpg-agent.nix @@ -25,17 +25,23 @@ let GPG_TTY="$(tty)" export GPG_TTY '' - + optionalString cfg.enableSshSupport "${gpgSshSupportStr} > /dev/null"; + + optionalString cfg.enableSshSupport '' + ${gpgSshSupportStr} > /dev/null + ''; gpgZshInitStr = '' export GPG_TTY=$TTY '' - + optionalString cfg.enableSshSupport "${gpgSshSupportStr} > /dev/null"; + + optionalString cfg.enableSshSupport '' + ${gpgSshSupportStr} > /dev/null + ''; gpgFishInitStr = '' set -gx GPG_TTY (tty) '' - + optionalString cfg.enableSshSupport "${gpgSshSupportStr} > /dev/null"; + + optionalString cfg.enableSshSupport '' + ${gpgSshSupportStr} > /dev/null + ''; gpgNushellInitStr = '' $env.GPG_TTY = (tty)