30 lines
No EOL
786 B
Nix
30 lines
No EOL
786 B
Nix
{ ... }:
|
|
{
|
|
hardware.graphics.enable = true;
|
|
services.xserver.videoDrivers = ["amdgpu" "nvidia"];
|
|
# services.xserver.videoDrivers = ["nvidia" "amdgpu"];
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
|
|
# Experimental nvidia power management
|
|
powerManagement.enable = false;
|
|
|
|
# Experimentally turn off Nvidia GPU when not in use
|
|
powerManagement.finegrained = false;
|
|
|
|
open = false; # Open source module is still very much beta
|
|
|
|
nvidiaSettings = true;
|
|
|
|
# Configure dual-gpu offloading
|
|
prime = {
|
|
amdgpuBusId = "PCI:4:0:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
offload = {
|
|
enable = true;
|
|
enableOffloadCmd = true;
|
|
};
|
|
};
|
|
};
|
|
} |