1 import ./make-test-python.nix ({ pkgs, ...} :
4 name = "plasma5-systemd-start";
5 meta = with pkgs.lib.maintainers; {
6 maintainers = [ oxalica ];
9 nodes.machine = { ... }:
12 imports = [ ./common/user-account.nix ];
15 displayManager.sddm.enable = true;
16 displayManager.defaultSession = "plasma";
17 desktopManager.plasma5.enable = true;
18 desktopManager.plasma5.runUsingSystemd = true;
19 displayManager.autoLogin = {
26 testScript = { nodes, ... }: ''
27 with subtest("Wait for login"):
29 machine.wait_for_file("/tmp/xauth_*")
30 machine.succeed("xauth merge /tmp/xauth_*")
32 with subtest("Check plasmashell started"):
33 machine.wait_until_succeeds("pgrep plasmashell")
34 machine.wait_for_window("^Desktop ")
36 status, result = machine.systemctl('--no-pager show plasma-plasmashell.service', user='alice')
37 assert status == 0, 'Service not found'
38 assert 'ActiveState=active' in result.split('\n'), 'Systemd service not active'