Add TLP config to the framework laptop

This commit is contained in:
iFargle 2023-11-19 17:34:23 +09:00
parent 9037d7250f
commit 60315746b9
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,13 @@
{ ... }: {
services.tlp = {
enable = true;
settings = {
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_BATTERY = "powersave";
# Specific to the Framework, since I have it limited to 80% charge in the BIOS
START_CHARGE_THRESH_BAT0 = 70;
STOP_CHARGE_THRESH_BAT0 = 79;
RUNTIME_PM_ON_BAT = "auto";
};
};
}

View file

@ -3,9 +3,10 @@
inputs.nixos-hardware.nixosModules.framework-13th-gen-intel
(modulesPath + "/installer/scan/not-detected.nix")
./disks.nix
../../common/services/powertop.nix
../../common/modules/secureboot.nix
../../common/services/powertop.nix
../../common/services/fwupd.nix
../../common/services.tlp.nix
];
# steam , etc