about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com>2022-09-04 14:53:34 +0200
committerGitHub <noreply@github.com>2022-09-04 14:53:34 +0200
commit68065dc56147ecab5ec78a546fae13c04b654ad3 (patch)
treee792e5a2c7ae593e997b492bef83876effa9f8c2 /nixos
parent2e7e6e6ee88cff92990917d1d03d85e8703a2991 (diff)
parent0d44562788af06ba6a34f7ada5a0a48a4cbb89f3 (diff)
downloadnixlib-68065dc56147ecab5ec78a546fae13c04b654ad3.tar
nixlib-68065dc56147ecab5ec78a546fae13c04b654ad3.tar.gz
nixlib-68065dc56147ecab5ec78a546fae13c04b654ad3.tar.bz2
nixlib-68065dc56147ecab5ec78a546fae13c04b654ad3.tar.lz
nixlib-68065dc56147ecab5ec78a546fae13c04b654ad3.tar.xz
nixlib-68065dc56147ecab5ec78a546fae13c04b654ad3.tar.zst
nixlib-68065dc56147ecab5ec78a546fae13c04b654ad3.zip
Merge pull request #189711 from SuperSandro2000/gnupg-remote-quiet
nixos/gnupg: void error messages when using nix remote builders
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/programs/gnupg.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/gnupg.nix b/nixos/modules/programs/gnupg.nix
index 1a9006aad14e..828f24f99111 100644
--- a/nixos/modules/programs/gnupg.nix
+++ b/nixos/modules/programs/gnupg.nix
@@ -135,7 +135,7 @@ in
       # The SSH agent protocol doesn't have support for changing TTYs; however we
       # can simulate this with the `exec` feature of openssh (see ssh_config(5))
       # that hooks a command to the shell currently running the ssh program.
-      Match host * exec "${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null"
+      Match host * exec "${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye >/dev/null 2>&1"
     '';
 
     environment.extraInit = mkIf cfg.agent.enableSSHSupport ''