summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-05-31 14:40:18 +0200
committerJulian T <julian@jtle.dk>2021-05-31 14:40:18 +0200
commit5d843da8a75506bdef4133babbf8acced4c8f343 (patch)
treee71b861cd2792e5b9e4485fda34ab5ad806c6451
parent9d2314bb6e735b81932ea50e5f3f567fee163d77 (diff)
Battery charging threshold
-rw-r--r--pc_t14.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pc_t14.nix b/pc_t14.nix
index 95c8999..06144b0 100644
--- a/pc_t14.nix
+++ b/pc_t14.nix
@@ -53,7 +53,13 @@
};
services = {
- tlp.enable = true;
+ tlp = {
+ enable = true;
+ settings = {
+ START_CHARGE_THRESH_BAT0 = 80;
+ STOP_CHARGE_THRESH_BAT0 = 85;
+ };
+ };
xserver.videoDrivers = ["amdgpu"];
};