about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2018-11-14 20:34:48 +0100
committerVladimír Čunát <vcunat@gmail.com>2018-11-14 20:34:48 +0100
commite2290658421a44af98f9747b951e9945518da5c9 (patch)
treea49de6c0a71908d038b9532440aed6369c5efee0 /nixos
parent25864ec2b74cf79e99d212b9ef16057bfc79a895 (diff)
parent9108b24253283cb776ff8c8520a349c3024b51ad (diff)
downloadnixlib-e2290658421a44af98f9747b951e9945518da5c9.tar
nixlib-e2290658421a44af98f9747b951e9945518da5c9.tar.gz
nixlib-e2290658421a44af98f9747b951e9945518da5c9.tar.bz2
nixlib-e2290658421a44af98f9747b951e9945518da5c9.tar.lz
nixlib-e2290658421a44af98f9747b951e9945518da5c9.tar.xz
nixlib-e2290658421a44af98f9747b951e9945518da5c9.tar.zst
nixlib-e2290658421a44af98f9747b951e9945518da5c9.zip
Merge #50280: xorg: init xf86-video-vboxvideo ...
Based on reports X wouldn't start out of the box and seems OK now.
In case there are still some problems, we can improve later.
I checked that nixos.tests.virtualbox.* still succeed.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/xserver.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix
index 070a02473437..34ae8c11a3f0 100644
--- a/nixos/modules/services/x11/xserver.nix
+++ b/nixos/modules/services/x11/xserver.nix
@@ -13,7 +13,8 @@ let
 
   # Map video driver names to driver packages. FIXME: move into card-specific modules.
   knownVideoDrivers = {
-    virtualbox = { modules = [ kernelPackages.virtualboxGuestAdditions ]; driverName = "vboxvideo"; };
+    # Alias so people can keep using "virtualbox" instead of "vboxvideo".
+    virtualbox = { modules = [ xorg.xf86videovboxvideo ]; driverName = "vboxvideo"; };
 
     # modesetting does not have a xf86videomodesetting package as it is included in xorgserver
     modesetting = {};
@@ -564,8 +565,6 @@ in
           knownVideoDrivers;
       in optional (driver != null) ({ inherit name; modules = []; driverName = name; } // driver));
 
-    nixpkgs.config = optionalAttrs (elem "vboxvideo" cfg.videoDrivers) { xorg.abiCompat = "1.18"; };
-
     assertions = [
       { assertion = config.security.polkit.enable;
         message = "X11 requires Polkit to be enabled (‘security.polkit.enable = true’).";