28 lines
595 B
Nix
28 lines
595 B
Nix
{ lib, ... }:
|
|
{
|
|
imports = [
|
|
../default.nix
|
|
../../../system/gpu/nvidia/prime.nix
|
|
../../../system/gpu/nvidia/turing
|
|
];
|
|
|
|
hardware.graphics.enable = true;
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
nvidiaSettings = true;
|
|
powerManagement.enable = false;
|
|
powerManagement.finegrained = true;
|
|
};
|
|
hardware.nvidia.prime = {
|
|
offload = {
|
|
enable = true;
|
|
enableOffloadCmd = true;
|
|
};
|
|
# Bus ID of the Intel GPU.
|
|
intelBusId = lib.mkDefault "PCI:0:2:0";
|
|
|
|
# Bus ID of the NVIDIA GPU.
|
|
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
|
};
|
|
}
|