From 627260ddbf8c029181fd195b93d8d9ffcfe0dd54 Mon Sep 17 00:00:00 2001 From: Daniel Fullmer Date: Mon, 26 Jun 2017 19:33:57 -0400 Subject: [PATCH] gnupg agent module: Only set tty for interactive shells --- 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 8af55f38992..ea46d5934d9 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)