1 import ./make-test-python.nix ({ pkgs, ...} :
4 name = "plasma-bigscreen";
5 meta = with pkgs.lib.maintainers; {
6 maintainers = [ ttuegel k900 ];
9 nodes.machine = { ... }:
12 imports = [ ./common/user-account.nix ];
13 services.xserver.enable = true;
14 services.xserver.displayManager.sddm.enable = true;
15 services.xserver.displayManager.defaultSession = "plasma-bigscreen-x11";
16 services.xserver.desktopManager.plasma5.bigscreen.enable = true;
17 services.xserver.displayManager.autoLogin = {
22 users.users.alice.extraGroups = ["uinput"];
25 testScript = { nodes, ... }: let
26 user = nodes.machine.users.users.alice;
27 xdo = "${pkgs.xdotool}/bin/xdotool";
29 with subtest("Wait for login"):
31 machine.wait_for_file("${user.home}/.Xauthority")
32 machine.succeed("xauth merge ${user.home}/.Xauthority")
34 with subtest("Check plasmashell started"):
35 machine.wait_until_succeeds("pgrep plasmashell")
36 machine.wait_for_window("Plasma Big Screen")