2011-03-11 18:00:10 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
machine =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2011-03-17 15:04:47 +01:00
|
|
|
{ require = [ ./common/user-account.nix ];
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
2011-03-11 18:00:10 +01:00
|
|
|
|
|
|
|
services.xserver.displayManager.auto.enable = true;
|
|
|
|
services.xserver.displayManager.auto.user = "alice";
|
|
|
|
|
|
|
|
services.xserver.desktopManager.xfce.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
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");
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|