nixos-hardware/lenovo/legion/16achg6/nvidia/default.nix

13 lines
337 B
Nix
Raw Normal View History

{ lib, options, ... }:
2023-12-13 07:40:08 +00:00
{
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;
2023-12-13 07:40:08 +00:00
};
}