2022-09-17 15:02:37 +02:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} :
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "plasma-bigscreen";
|
|
|
|
meta = with pkgs.lib.maintainers; {
|
|
|
|
maintainers = [ ttuegel k900 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes.machine = { ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ./common/user-account.nix ];
|
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.displayManager.sddm.enable = true;
|
|
|
|
services.xserver.displayManager.defaultSession = "plasma-bigscreen-x11";
|
|
|
|
services.xserver.desktopManager.plasma5.bigscreen.enable = true;
|
|
|
|
services.xserver.displayManager.autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "alice";
|
|
|
|
};
|
2022-10-12 19:28:53 +02:00
|
|
|
|
|
|
|
users.users.alice.extraGroups = ["uinput"];
|
2022-09-17 15:02:37 +02:00
|
|
|
};
|
|
|
|
|
2023-07-09 17:12:27 +02:00
|
|
|
testScript = { nodes, ... }: ''
|
2022-09-17 15:02:37 +02:00
|
|
|
with subtest("Wait for login"):
|
|
|
|
start_all()
|
2023-07-09 17:12:27 +02:00
|
|
|
machine.wait_for_file("/tmp/xauth_*")
|
|
|
|
machine.succeed("xauth merge /tmp/xauth_*")
|
2022-09-17 15:02:37 +02:00
|
|
|
|
|
|
|
with subtest("Check plasmashell started"):
|
|
|
|
machine.wait_until_succeeds("pgrep plasmashell")
|
|
|
|
machine.wait_for_window("Plasma Big Screen")
|
|
|
|
'';
|
|
|
|
})
|