rename modules folder to imports

This commit is contained in:
ISnortPennies 2023-02-07 20:19:15 -05:00
parent ad16fd69f5
commit ad704d807c
21 changed files with 12 additions and 12 deletions

30
imports/prime.nix Normal file
View file

@ -0,0 +1,30 @@
{pkgs, ...}: {
hardware.nvidia = {
prime = {
offload.enable = true;
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
powerManagement = {
enable = true;
finegrained = true;
};
nvidiaPersistenced = true;
nvidiaSettings = false;
modesetting.enable = true;
};
services.xserver = {
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"
'';
};
}