about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorMarc Jakobi <mrcjkb89@outlook.com>2022-12-27 00:48:35 +0100
committerMarc Jakobi <mrcjkb89@outlook.com>2023-01-03 16:37:05 +0100
commit9cc1e97f615b66e3f89fe0d1b7277fce44bd07aa (patch)
tree4a35c514336d43b9a1933ff88ffb4abb94592e32 /nixos/modules/programs
parent7a073668c1d20587daf0e097ec1a15cb5d92a387 (diff)
nixos/gnupg: (fix) use runtimeShell to call updatestartuptty
Diffstat (limited to 'nixos/modules/programs')
-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 828f24f99111d..cb8d0ecff4cb8 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 2>&1"
+      Match host * exec "${pkgs.runtimeShell} -c '${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye >/dev/null 2>&1'"
     '';
 
     environment.extraInit = mkIf cfg.agent.enableSSHSupport ''