nixos: add runinmachinewithx variant

svn path=/nixos/trunk/; revision=20561
This commit is contained in:
Rob Vermaas 2010-03-11 15:09:10 +00:00
parent 95f2e60c5d
commit 131b1e57fe

View File

@ -138,7 +138,28 @@ rec {
origArgs = attrs.args;
origBuilder = attrs.builder;
});
runInMachineWithX = args :
let
client =
{ config, pkgs, ... }:
{
virtualisation.memorySize = 1024;
services.xserver.enable = true;
services.xserver.displayManager.slim.enable = false;
services.xserver.displayManager.auto.enable = true;
services.xserver.windowManager.default = "icewm";
services.xserver.windowManager.icewm.enable = true;
services.xserver.desktopManager.default = "none";
};
in
runInMachine ({
machine = client;
preBuild = ''
$client->waitForX ;
'' ;
} // args );
simpleTest = as: (apply ({ ... }: as)).test;
}