ff458f3fc8
svn path=/nixos/trunk/; revision=26284
36 lines
818 B
Nix
36 lines
818 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
machine =
|
|
{ config, pkgs, ... }:
|
|
|
|
{ services.xserver.enable = true;
|
|
|
|
services.xserver.displayManager.auto.enable = true;
|
|
services.xserver.displayManager.auto.user = "alice";
|
|
|
|
services.xserver.desktopManager.xfce.enable = true;
|
|
|
|
users.extraUsers = pkgs.lib.singleton
|
|
{ name = "alice";
|
|
description = "Alice Foobar";
|
|
home = "/home/alice";
|
|
createHome = true;
|
|
useDefaultShell = true;
|
|
password = "foobar";
|
|
};
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
$machine->waitForWindow(qr/Tips/);
|
|
$machine->sleep(10);
|
|
$machine->succeed("su - alice -c 'DISPLAY=:0.0 Terminal &'");
|
|
$machine->waitForWindow(qr/Terminal/);
|
|
$machine->sleep(10);
|
|
$machine->screenshot("screen");
|
|
'';
|
|
|
|
}
|