summary refs log tree commit diff
path: root/nixos/modules/testing
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-01-15 14:38:50 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-01-15 14:39:29 +0100
commit24ce7ff3eabd012443a1c2d435be6b73e771a6b9 (patch)
treeceb0dabddee690a286b41b93627e5bcd8c707c45 /nixos/modules/testing
parent63f48b2528ada55e6ff61db32303b28429f21f83 (diff)
downloadnixpkgs-24ce7ff3eabd012443a1c2d435be6b73e771a6b9.tar
nixpkgs-24ce7ff3eabd012443a1c2d435be6b73e771a6b9.tar.gz
nixpkgs-24ce7ff3eabd012443a1c2d435be6b73e771a6b9.tar.bz2
nixpkgs-24ce7ff3eabd012443a1c2d435be6b73e771a6b9.tar.lz
nixpkgs-24ce7ff3eabd012443a1c2d435be6b73e771a6b9.tar.xz
nixpkgs-24ce7ff3eabd012443a1c2d435be6b73e771a6b9.tar.zst
nixpkgs-24ce7ff3eabd012443a1c2d435be6b73e771a6b9.zip
test-instrumentation.nix: Prevent calling a pager
Diffstat (limited to 'nixos/modules/testing')
-rw-r--r--nixos/modules/testing/test-instrumentation.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/testing/test-instrumentation.nix b/nixos/modules/testing/test-instrumentation.nix
index 4b4284d8531..f37bbd0246d 100644
--- a/nixos/modules/testing/test-instrumentation.nix
+++ b/nixos/modules/testing/test-instrumentation.nix
@@ -38,6 +38,11 @@ let kernel = config.boot.kernelPackages.kernel; in
     systemd.services."serial-getty@ttyS0".enable = false;
     systemd.services."serial-getty@hvc0".enable = false;
 
+    # Don't use a pager when executing backdoor actions. Because we
+    # use a tty, commands like systemctl or nix-store get confused
+    # into thinking they're running interactively.
+    environment.variables.PAGER = "";
+
     boot.initrd.postDeviceCommands =
       ''
         # Using acpi_pm as a clock source causes the guest clock to