From f666aa7479f2e4902fb4819c0e85b874bb501e3e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 11 Aug 2009 02:02:01 +0000 Subject: [PATCH] * With "nixos-rebuild build-vm", override the video driver of the host (since e.g. "nvidia" won't work in the VM). svn path=/nixos/trunk/; revision=16663 --- modules/virtualisation/qemu-vm.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/virtualisation/qemu-vm.nix b/modules/virtualisation/qemu-vm.nix index a5329b0d297..742bef873fc 100644 --- a/modules/virtualisation/qemu-vm.nix +++ b/modules/virtualisation/qemu-vm.nix @@ -126,4 +126,9 @@ in '' EnableSendFile Off ''; + + # When building a regular system configuration, override whatever + # video driver the host uses. + services.xserver.videoDriver = pkgs.lib.mkOverride 50 {} "vesa"; + services.xserver.defaultDepth = pkgs.lib.mkOverride 50 {} 16; }