configured prime offloading correctly

This commit is contained in:
ISnortPennies 2023-02-01 21:13:25 -05:00
parent d9122ada5e
commit a4cda1687c

View file

@ -1,15 +1,30 @@
{
{pkgs, ...}: {
hardware.nvidia = {
prime = {
sync.enable = true;
offload.enable = true;
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
nvidiaPersistenced = false;
powerManagement = {
enable = true;
finegrained = true;
};
nvidiaPersistenced = true;
nvidiaSettings = false;
modesetting.enable = true;
};
services.xserver = {
videoDrivers = ["modesetting" "nvidia"];
videoDrivers = ["nvidia"];
#disable DPMS
monitorSection = ''
Option "DPMS" "false"
'';
#disable screen blanking in total
serverFlagsSection = ''
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
Option "BlankTime" "0"
'';
};
}