Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
957 B
Nix
40 lines
957 B
Nix
{ ... }:
|
|
|
|
{
|
|
name = "libinput";
|
|
|
|
nodes.machine =
|
|
{ ... }:
|
|
{
|
|
imports = [
|
|
./common/x11.nix
|
|
./common/user-account.nix
|
|
];
|
|
|
|
test-support.displayManager.auto.user = "alice";
|
|
|
|
services.libinput = {
|
|
enable = true;
|
|
mouse = {
|
|
naturalScrolling = true;
|
|
leftHanded = true;
|
|
middleEmulation = false;
|
|
horizontalScrolling = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
def expect_xserver_option(option, value):
|
|
machine.succeed(f"""cat /var/log/X.0.log | grep -F 'Option "{option}" "{value}"'""")
|
|
|
|
machine.start()
|
|
machine.wait_for_x()
|
|
machine.succeed("""cat /var/log/X.0.log | grep -F "Using input driver 'libinput'" """)
|
|
expect_xserver_option("NaturalScrolling", "on")
|
|
expect_xserver_option("LeftHanded", "on")
|
|
expect_xserver_option("MiddleEmulation", "off")
|
|
expect_xserver_option("HorizontalScrolling", "off")
|
|
'';
|
|
}
|