0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos/nvidia: fix potential null value in versionOlder check

This commit is contained in:
oddlama 2024-07-29 01:58:55 +02:00
parent 139855af78
commit c15eea348d
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -102,8 +102,8 @@ in
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\"";
default = lib.versionAtLeast cfg.package.version "535";
defaultText = lib.literalExpression "lib.versionAtLeast cfg.package.version \"535\"";
};
prime.nvidiaBusId = lib.mkOption {