mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
24 lines
556 B
Nix
24 lines
556 B
Nix
import ./make-test.nix ({ pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
name = "xautolock";
|
|
meta.maintainers = with pkgs.stdenv.lib.maintainers; [ ma27 ];
|
|
|
|
nodes.machine = {
|
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
|
|
|
services.xserver.displayManager.auto.user = "bob";
|
|
services.xserver.xautolock.enable = true;
|
|
services.xserver.xautolock.time = 1;
|
|
};
|
|
|
|
testScript = ''
|
|
$machine->start;
|
|
$machine->waitForX;
|
|
$machine->mustFail("pgrep xlock");
|
|
$machine->sleep(120);
|
|
$machine->mustSucceed("pgrep xlock");
|
|
'';
|
|
})
|