nixpkgs/nixos/tests/libuiohook.nix
Martin Weinelt f1091a72dc nixosTests: remove deprecated config attribute access
```
sed -i 's/\(nodes\.[^.]*\)\.config/\1/g' nixos/tests/**.nix
````

(cherry picked from commit 63c4563604)
2026-06-22 10:45:03 +00:00

33 lines
655 B
Nix

{ pkgs, lib, ... }:
{
name = "libuiohook";
meta = with lib.maintainers; {
maintainers = [ anoa ];
};
nodes.client =
{ nodes, ... }:
let
user = nodes.client.users.users.alice;
in
{
imports = [
./common/user-account.nix
./common/x11.nix
];
environment.systemPackages = [ pkgs.libuiohook.test ];
test-support.displayManager.auto.user = user.name;
};
testScript =
{ nodes, ... }:
let
user = nodes.client.users.users.alice;
in
''
client.wait_for_x()
client.succeed("su - alice -c ${pkgs.libuiohook.test}/share/uiohook_tests >&2 &")
'';
}