nixos/nvidia: Add a temporary hack to support kernel 4.0
This commit is contained in:
parent
18c9619021
commit
c0cb4e1ef7
@ -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
|
||||
|
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user