mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
configured prime offloading correctly
This commit is contained in:
parent
d9122ada5e
commit
a4cda1687c
1 changed files with 19 additions and 4 deletions
|
|
@ -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"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue