1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-27 21:39:43 +01:00
nixos-hardware/lenovo/legion/16achg6/nvidia/default.nix

13 lines
337 B
Nix
Raw Normal View History

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