pinwheel: Add tlp module
This commit is contained in:
@@ -82,6 +82,7 @@
|
|||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
swaylock.enable = false;
|
swaylock.enable = false;
|
||||||
physlock.enable = true;
|
physlock.enable = true;
|
||||||
|
tlp.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
openvpn.enable = true;
|
openvpn.enable = true;
|
||||||
go.enable = true;
|
go.enable = true;
|
||||||
|
|||||||
24
hosts/pinwheel/modules/tlp/default.nix
Normal file
24
hosts/pinwheel/modules/tlp/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user