nixos/nvidia: default open for version 560+

This commit is contained in:
Kiskae 2024-07-23 19:11:43 +02:00
parent 21bc7a6efd
commit bfeb6e74cf

View File

@ -253,7 +253,9 @@ in
open = lib.mkEnableOption ''
the open source NVIDIA kernel module
'';
'' // {
defaultText = lib.literalExpression ''lib.versionAtLeast config.hardware.nvidia.package.version "560"'';
};
};
};
@ -302,6 +304,8 @@ in
extraPackages32 = [ nvidia_x11.lib32 ];
};
environment.systemPackages = [ nvidia_x11.bin ];
hardware.nvidia.open = lib.mkDefault (lib.versionAtLeast nvidia_x11.version "560");
})
# X11