mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 17:03:56 -05:00
moved functions to /lib inputs over imports turned each module file into a nixosModule moved registry and $NIX_PATH pinning to /modules/pinning.nix
27 lines
645 B
Nix
27 lines
645 B
Nix
_: {config, ...}: {
|
|
hardware.nvidia = {
|
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
|
prime = {
|
|
sync.enable = true;
|
|
amdgpuBusId = "PCI:5:0:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
};
|
|
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"
|
|
'';
|
|
};
|
|
}
|