pinwheel: Add tlp module

This commit is contained in:
Alexander Heldt committed 2023-10-26 22:08:19 +02:00
1 parent bc4e205a62
commit ef407d62dc
2 files changed
+25

No files matched your search

+24
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;
};
};
};
};
}