mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
nixos: add runinmachinewithx variant
svn path=/nixos/trunk/; revision=20561
This commit is contained in:
parent
95f2e60c5d
commit
131b1e57fe
@ -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;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user