From ab1922aea2db481d5a45af6bd2833d379ac23404 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] fix: console output when using ssh I'm getting: ``` gpg-connect-agent: connection to the agent is in restricted mode ``` which I tracked to this invocation. Adding `--quiet` fixes it, and is probably a good idea. --- 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 cce5ac19..23501c68 100644 --- a/modules/services/gpg-agent.nix +++ b/modules/services/gpg-agent.nix @@ -10,7 +10,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 = '' @@ -25,7 +25,7 @@ let gpgNushellInitStr = '' $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)) '';