summary refs log tree commit diff
path: root/nixos/tests/xss-lock.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2019-01-04 15:41:51 +0100
committerJörg Thalheim <joerg@thalheim.io>2019-01-05 16:42:30 +0100
commit2614c8a6c564d7eb5b693975b3c1ff9771f5753f (patch)
tree22974853c8b13d09d4dba47d45844457a83f8b4b /nixos/tests/xss-lock.nix
parent82e204382f79a363dd7c858cd5a4f50ade08f5b1 (diff)
downloadnixpkgs-2614c8a6c564d7eb5b693975b3c1ff9771f5753f.tar
nixpkgs-2614c8a6c564d7eb5b693975b3c1ff9771f5753f.tar.gz
nixpkgs-2614c8a6c564d7eb5b693975b3c1ff9771f5753f.tar.bz2
nixpkgs-2614c8a6c564d7eb5b693975b3c1ff9771f5753f.tar.lz
nixpkgs-2614c8a6c564d7eb5b693975b3c1ff9771f5753f.tar.xz
nixpkgs-2614c8a6c564d7eb5b693975b3c1ff9771f5753f.tar.zst
nixpkgs-2614c8a6c564d7eb5b693975b3c1ff9771f5753f.zip
nixos/xss-lock: specify a default locker
Having a default locker is less error-prone and more convenient.
Incorrect values might leave the machine vulnerable since there is no
fallback.
Diffstat (limited to 'nixos/tests/xss-lock.nix')
-rw-r--r--nixos/tests/xss-lock.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/tests/xss-lock.nix b/nixos/tests/xss-lock.nix
index 045667bdcde..b46bb1a8f6e 100644
--- a/nixos/tests/xss-lock.nix
+++ b/nixos/tests/xss-lock.nix
@@ -9,7 +9,6 @@ with lib;
   machine = {
     imports = [ ./common/x11.nix ./common/user-account.nix ];
     programs.xss-lock.enable = true;
-    programs.xss-lock.lockerCommand = "${pkgs.xlockmore}/bin/xlock";
     services.xserver.displayManager.auto.user = "alice";
   };
 
@@ -20,6 +19,6 @@ with lib;
 
     $machine->fail("pgrep xlock");
     $machine->succeed("su -l alice -c 'xset dpms force standby'");
-    $machine->waitUntilSucceeds("pgrep xlock");
+    $machine->waitUntilSucceeds("pgrep i3lock");
   '';
 })