Add tlp power save service to citadel
This commit is contained in:
parent
c448a8c0cd
commit
9d287792c6
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue