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, ... }:
|
||||||
|
{ inputs, lib, pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
# Disko setup
|
# Disko setup
|
||||||
fsType = "btrfs"; # one of ext4 or btrfs. Use btrfs if using impermanence
|
fsType = "btrfs"; # one of ext4 or btrfs. Use btrfs if using impermanence
|
||||||
|
@ -67,6 +68,19 @@ in
|
||||||
XCURSOR_SIZE = "64";
|
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 = {
|
hardware = {
|
||||||
enableRedistributableFirmware = true;
|
enableRedistributableFirmware = true;
|
||||||
firmware = [
|
firmware = [
|
||||||
|
|
Loading…
Reference in New Issue