diff options
author | Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> | 2023-01-03 18:20:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 18:20:05 +0100 |
commit | 4b87e3b61de3ca1032f2b74b1fbb5d7eccfae36d (patch) | |
tree | 871619f9db153db03657f6e76f9316c4e10627f6 /nixos/modules/programs | |
parent | 83481b87082efe630b6bcd3c5089f488d90be51f (diff) | |
parent | 9cc1e97f615b66e3f89fe0d1b7277fce44bd07aa (diff) |
Merge pull request #207887 from MrcJkb/fix-gpg-module-for-nushell
nixos/gnupg: (fix) use runtimeShell to call updatestartuptty
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/gnupg.nix | 2 |
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 '' |