1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-05 01:09:44 +01:00
nixos-hardware/lenovo/legion/16achg6/nvidia/default.nix
Jörg Thalheim 083823b790 gpu/amd: drop hardware.amdgpu.opencl option
This now conflicts with nixpkgs.
2024-06-20 14:48:13 +00:00

12 lines
337 B
Nix

{ lib, options, ... }:
{
imports = [ ../hybrid ];
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
nvidia.prime.offload.enable = false;
} // lib.optionalAttrs (options ? amdgpu.opencl.enable) {
# introduced in https://github.com/NixOS/nixpkgs/pull/319865
amdgpu.opencl.enable = lib.mkDefault false;
};
}