2024-06-20 10:05:41 -04:00
|
|
|
{ lib, options, ... }:
|
2023-12-13 02:40:08 -05:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../hybrid ];
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
hardware = {
|
|
|
|
nvidia.prime.offload.enable = false;
|
2024-06-20 10:05:41 -04:00
|
|
|
} // lib.optionalAttrs (options ? amdgpu.opencl.enable) {
|
|
|
|
# introduced in https://github.com/NixOS/nixpkgs/pull/319865
|
|
|
|
amdgpu.opencl.enable = lib.mkDefault false;
|
2023-12-13 02:40:08 -05:00
|
|
|
};
|
2024-06-13 02:51:03 -04:00
|
|
|
}
|