summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorDaniel Fullmer <danielrf12@gmail.com>2017-06-26 19:33:57 -0400
committerFranz Pletz <fpletz@fnordicwalking.de>2017-07-14 00:22:20 +0200
commit627260ddbf8c029181fd195b93d8d9ffcfe0dd54 (patch)
tree00445db245955988b5f69bb6c3a2f87762a2b341 /nixos
parent38e971d2e1b9f969f1fd0332a6d5a5773b0a22d1 (diff)
downloadnixlib-627260ddbf8c029181fd195b93d8d9ffcfe0dd54.tar
nixlib-627260ddbf8c029181fd195b93d8d9ffcfe0dd54.tar.gz
nixlib-627260ddbf8c029181fd195b93d8d9ffcfe0dd54.tar.bz2
nixlib-627260ddbf8c029181fd195b93d8d9ffcfe0dd54.tar.lz
nixlib-627260ddbf8c029181fd195b93d8d9ffcfe0dd54.tar.xz
nixlib-627260ddbf8c029181fd195b93d8d9ffcfe0dd54.tar.zst
nixlib-627260ddbf8c029181fd195b93d8d9ffcfe0dd54.zip
gnupg agent module: Only set tty for interactive shells
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 8af55f38992f..ea46d5934d9f 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)