1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-10-09 21:03:30 +02:00

nixos: enable NVIDIA runtime power management

This commit is contained in:
TheGeneralist 2026-10-09 15:10:45 +02:00
parent 33f6a352af
commit 06c4eab6eb
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -19,10 +19,17 @@
boot.extraModprobeConfig = ''
options rtw88_usb switch_usb_mode=N
options rtw88_core disable_lps_deep=1
options nvidia NVreg_DynamicPowerManagement=0x02
'';
boot.kernelParams = [ "usbcore.autosuspend=-1" ];
networking.networkmanager.wifi.powersave = false;
# Allow this headless Turing GPU to enter runtime D3 while unused.
services.udev.extraRules = ''
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="auto"
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="on"
'';
# Favor efficient idle and light-load operation without suspending this
# always-on host. The EPP setting retains short performance bursts.
powerManagement = {