summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hoang <Enzime@users.noreply.github.com>2024-09-01 21:15:02 +1000
committerGitHub <noreply@github.com>2024-09-01 21:15:02 +1000
commit7c4b53a7d9f3a3df902b3fddf2ae245ef20ebcda (patch)
treeb68dc602e9679ffe258d51f24c53e02f3bf9a1dd
parentc8d3157d1f768e382de5526bb38e74d2245cad04 (diff)
parent75d14c62cbc4360cbd1a1b5c52dbd17b8bd08892 (diff)
Merge pull request #1051 from booxter/suppress-gpg-connect-agent-stderr
gpg: Suppress stderr from gpg-connect-agent on shell init
-rw-r--r--modules/programs/gnupg.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/programs/gnupg.nix b/modules/programs/gnupg.nix
index 4c451ec..6a34e30 100644
--- a/modules/programs/gnupg.nix
+++ b/modules/programs/gnupg.nix
@@ -43,7 +43,7 @@ in
'' + (optionalString cfg.agent.enableSSHSupport ''
# SSH agent protocol doesn't support changing TTYs, so bind the agent
# to every new TTY.
- ${pkgs.gnupg}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null
+ ${pkgs.gnupg}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null 2>&1
export SSH_AUTH_SOCK=$(${pkgs.gnupg}/bin/gpgconf --list-dirs agent-ssh-socket)
'');