mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
23 lines
455 B
Nix
23 lines
455 B
Nix
{
|
|
name = "xautolock";
|
|
meta.maintainers = [ ];
|
|
|
|
nodes.machine = {
|
|
imports = [
|
|
./common/x11.nix
|
|
./common/user-account.nix
|
|
];
|
|
|
|
test-support.displayManager.auto.user = "bob";
|
|
services.xserver.xautolock.enable = true;
|
|
services.xserver.xautolock.time = 1;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
machine.wait_for_x()
|
|
machine.fail("pgrep xlock")
|
|
machine.sleep(120)
|
|
machine.succeed("pgrep xlock")
|
|
'';
|
|
}
|