feat: battery life
This commit is contained in:
parent
c392a1eaff
commit
69447ae515
5 changed files with 13 additions and 3 deletions
8
system/modules/battery-life.nix
Normal file
8
system/modules/battery-life.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
STOP_CHARGE_THRESH_BAT0 = 80;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
enableIPv6 = false;
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 8099 ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue