Add tlp power save service to citadel

This commit is contained in:
Sam 2024-07-20 23:51:10 +01:00
parent c448a8c0cd
commit 9d287792c6
1 changed files with 14 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{ inputs, lib, pkgs, ... }:
{ inputs, lib, pkgs, config, ... }:
let
# Disko setup
fsType = "btrfs"; # one of ext4 or btrfs. Use btrfs if using impermanence
@ -67,6 +68,19 @@ in
XCURSOR_SIZE = "64";
};
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "ondemand";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
START_CHARGE_THRESH_BAT0 = 80;
STOP_CHARGE_THRESH_BAT0 = 85;
USB_BLACKLIST_PHONE = 1;
};
};
hardware = {
enableRedistributableFirmware = true;
firmware = [