grimm-nixos-laptop/modules/tlp.nix

24 lines
633 B
Nix
Raw Normal View History

2024-04-10 16:51:28 +02:00
{ pkgs, ... }:
2023-11-28 23:24:43 +01:00
{
services.power-profiles-daemon.enable = false;
services.tlp = {
enable = true;
settings = {
2024-04-10 16:51:28 +02:00
USB_AUTOSUSPEND = 1;
USB_EXCLUDE_BTUSB = 1;
USB_EXCLUDE_PHONE = 1;
SOUND_POWER_SAVE_ON_AC = 0;
SOUND_POWER_SAVE_ON_BAT = 1;
SATA_LINKPWR_ON_AC = "max_performance";
SATA_LINKPWR_ON_BAT = "min_power";
MAX_LOST_WORK_SECS_ON_BAT = 15;
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
RUNTIME_PM_ON_AC = "on";
RUNTIME_PM_ON_BAT = "auto";
2023-11-28 23:24:43 +01:00
};
};
}