Add TLP config to the framework laptop
This commit is contained in:
parent
9037d7250f
commit
60315746b9
2 changed files with 15 additions and 1 deletions
13
nixos/common/services/tlp.nix
Normal file
13
nixos/common/services/tlp.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,9 +3,10 @@
|
||||||
inputs.nixos-hardware.nixosModules.framework-13th-gen-intel
|
inputs.nixos-hardware.nixosModules.framework-13th-gen-intel
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
./disks.nix
|
./disks.nix
|
||||||
../../common/services/powertop.nix
|
|
||||||
../../common/modules/secureboot.nix
|
../../common/modules/secureboot.nix
|
||||||
|
../../common/services/powertop.nix
|
||||||
../../common/services/fwupd.nix
|
../../common/services/fwupd.nix
|
||||||
|
../../common/services.tlp.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# steam , etc
|
# steam , etc
|
||||||
|
|
Loading…
Reference in a new issue