mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
9153d8ed64
Probably missed a few. Also adding xauth to the system path (it was already in the closure).
31 lines
797 B
Nix
31 lines
797 B
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "sddm";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ ttuegel ];
|
|
};
|
|
|
|
machine = { lib, ... }: {
|
|
imports = [ ./common/user-account.nix ];
|
|
services.xserver.enable = true;
|
|
services.xserver.displayManager.sddm = {
|
|
enable = true;
|
|
autoLogin = {
|
|
enable = true;
|
|
user = "alice";
|
|
};
|
|
};
|
|
services.xserver.windowManager.default = "icewm";
|
|
services.xserver.windowManager.icewm.enable = true;
|
|
services.xserver.desktopManager.default = "none";
|
|
};
|
|
|
|
enableOCR = true;
|
|
|
|
testScript = { nodes, ... }: ''
|
|
startAll;
|
|
$machine->waitForFile("/home/alice/.Xauthority");
|
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
|
$machine->waitForWindow("^IceWM ");
|
|
'';
|
|
})
|