1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

nixos/nvidia: enable modesetting by default on driver versions >= 535

This commit is contained in:
seth 2024-07-11 15:04:04 -04:00
parent c20399ea2e
commit e708e7a14d
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86

View file

@ -101,7 +101,10 @@ in
Enabling this and using version 545 or newer of the proprietary NVIDIA
driver causes it to provide its own framebuffer device, which can cause
Wayland compositors to work when they otherwise wouldn't.
'';
'' // {
default = lib.versionAtLeast nvidia_x11.version "535";
defaultText = lib.literalExpression "lib.versionAtLeast nvidia_x11.version \"535\"";
};
prime.nvidiaBusId = lib.mkOption {
type = busIDType;