at master 669 B view raw
1{ pkgs, lib, ... }: 2{ 3 name = "libuiohook"; 4 meta = with lib.maintainers; { 5 maintainers = [ anoa ]; 6 }; 7 8 nodes.client = 9 { nodes, ... }: 10 let 11 user = nodes.client.config.users.users.alice; 12 in 13 { 14 imports = [ 15 ./common/user-account.nix 16 ./common/x11.nix 17 ]; 18 19 environment.systemPackages = [ pkgs.libuiohook.test ]; 20 21 test-support.displayManager.auto.user = user.name; 22 }; 23 24 testScript = 25 { nodes, ... }: 26 let 27 user = nodes.client.config.users.users.alice; 28 in 29 '' 30 client.wait_for_x() 31 client.succeed("su - alice -c ${pkgs.libuiohook.test}/share/uiohook_tests >&2 &") 32 ''; 33}