mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
c52aeacf1a
svn path=/nixos/trunk/; revision=26394
28 lines
618 B
Nix
28 lines
618 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
machine =
|
|
{ config, pkgs, ... }:
|
|
|
|
{ require = [ ./common/user-account.nix ];
|
|
|
|
services.xserver.enable = true;
|
|
|
|
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");
|
|
'';
|
|
|
|
}
|