From 1e8c62c651242fc685b10efc4a48ab777635fb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ci=C4=99=C5=BCarkiewicz?= Date: Sat, 6 Jul 2024 21:17:47 -0700 Subject: [PATCH] gpg-agent: avoid console output when using ssh Without `--quiet` gpg-connect-agent sometimes prints ``` gpg-connect-agent: connection to the agent is in restricted mode ``` --- modules/services/gpg-agent.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/gpg-agent.nix b/modules/services/gpg-agent.nix index 36e166f2d..9d176047c 100644 --- a/modules/services/gpg-agent.nix +++ b/modules/services/gpg-agent.nix @@ -20,7 +20,7 @@ let homedir = config.programs.gpg.homedir; gpgSshSupportStr = '' - ${gpgPkg}/bin/gpg-connect-agent updatestartuptty /bye > /dev/null + ${gpgPkg}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null ''; gpgInitStr = @@ -47,7 +47,7 @@ let $env.GPG_TTY = (tty) '' + optionalString cfg.enableSshSupport '' - ${gpgPkg}/bin/gpg-connect-agent updatestartuptty /bye | ignore + ${gpgPkg}/bin/gpg-connect-agent --quiet updatestartuptty /bye | ignore $env.SSH_AUTH_SOCK = ($env.SSH_AUTH_SOCK? | default (${gpgPkg}/bin/gpgconf --list-dirs agent-ssh-socket)) '';