things
This commit is contained in:
@@ -5,15 +5,17 @@ lib.mkMerge [
|
||||
# TODO: should we move it from flake.nix to here?
|
||||
# https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/nvidia/default.nix
|
||||
# https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/nvidia/prime.nix
|
||||
|
||||
hardware.opengl.enable = true;
|
||||
}
|
||||
(lib.mkIf (lib.versionOlder (lib.versions.majorMinor lib.version) "24.11") {
|
||||
hardware.opengl.enable = true;
|
||||
hardware.opengl.driSupport = true;
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
})
|
||||
(lib.mkIf (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.11") {
|
||||
hardware.nvidia.open = true;
|
||||
hardware.graphics.enable = true;
|
||||
hardware.graphics.enable32Bit = true;
|
||||
|
||||
# hardware.nvidia.open = if lib.versionOlder config.hardware.nvidia.package.version "560" then false else null;
|
||||
})
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user