mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
25 lines
546 B
Nix
25 lines
546 B
Nix
import ./make-test-python.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.wait_for_x()
|
|
machine.fail("pgrep xlock")
|
|
machine.sleep(120)
|
|
machine.succeed("pgrep xlock")
|
|
'';
|
|
})
|