nixos/nvidia: Add a temporary hack to support kernel 4.0

This commit is contained in:
William A. Kennington III 2015-04-03 21:53:34 -07:00
parent 18c9619021
commit c0cb4e1ef7
2 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,10 @@ let
# driver.
nvidiaForKernel = kernelPackages:
if elem "nvidia" drivers then
kernelPackages.nvidia_x11
if versionAtLeast kernelPackages.kernel.version "4.0" then
kernelPackages.nvidia_x11_beta
else
kernelPackages.nvidia_x11
else if elem "nvidiaLegacy173" drivers then
kernelPackages.nvidia_x11_legacy173
else if elem "nvidiaLegacy304" drivers then

View File

@ -12,6 +12,9 @@ assert (!libsOnly) -> kernel != null;
let
# TODO: Remove the use of the beta driver for kernel 4.0 in
# nixos/modules/hardware/video/nvidia.nix when this driver supports
# kernel 4.0
versionNumber = "346.47";
# Policy: use the highest stable version as the default (on our master).