mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
36 lines
959 B
Nix
36 lines
959 B
Nix
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.displayManager.sddm.enable = true;
|
|
services.displayManager.defaultSession = "plasma-bigscreen-x11";
|
|
services.xserver.desktopManager.plasma5.bigscreen.enable = true;
|
|
services.displayManager.autoLogin = {
|
|
enable = true;
|
|
user = "alice";
|
|
};
|
|
|
|
users.users.alice.extraGroups = ["uinput"];
|
|
};
|
|
|
|
testScript = { nodes, ... }: ''
|
|
with subtest("Wait for login"):
|
|
start_all()
|
|
machine.wait_for_file("/tmp/xauth_*")
|
|
machine.succeed("xauth merge /tmp/xauth_*")
|
|
|
|
with subtest("Check plasmashell started"):
|
|
machine.wait_until_succeeds("pgrep plasmashell")
|
|
machine.wait_for_window("Plasma Big Screen")
|
|
'';
|
|
})
|