From 433ea7bf3a7bebe465f703c0d1b4d8abe69cb998 Mon Sep 17 00:00:00 2001 From: Heitham Omar Date: Sun, 21 Oct 2018 10:19:04 +0100 Subject: [PATCH] gnupg: Fix, set current tty in interactive shell GPG_TTY was not being set to the current tty, breaking pinentry-tty/pinentry-curses. --- nixos/modules/programs/gnupg.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/programs/gnupg.nix b/nixos/modules/programs/gnupg.nix index addc9dcca87..b01de9efaa5 100644 --- a/nixos/modules/programs/gnupg.nix +++ b/nixos/modules/programs/gnupg.nix @@ -77,7 +77,7 @@ in systemd.packages = [ pkgs.gnupg ]; - environment.extraInit = '' + environment.interactiveShellInit = '' # Bind gpg-agent to this TTY if gpg commands are used. export GPG_TTY=$(tty)