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