pinwheel: Add tlp module

This commit is contained in:
Alexander Heldt
2023-10-23 21:13:48 +02:00
parent bc4e205a62
commit ef407d62dc
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{ lib, config, ... }:
let
enabled = config.mod.tlp.enable;
in
{
options = {
mod.tlp = {
enable = lib.mkEnableOption "enable tlp module";
};
};
config = lib.mkIf enabled {
services = {
tlp = {
enable = true;
settings = {
START_CHARGE_THRESH_BAT0=75;
STOP_CHARGE_THRESH_BAT0=80;
};
};
};
};
}