mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-02 15:59:43 +01:00
083823b790
This now conflicts with nixpkgs.
12 lines
337 B
Nix
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;
|
|
};
|
|
}
|