summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorj0hax <johannes.arnold@stud.uni-hannover.de>2020-04-21 02:54:18 +0200
committerj0hax <johannes.arnold@stud.uni-hannover.de>2020-04-21 03:47:11 +0200
commit76f681355cb6c2aab79d190907fbb521bd19ec87 (patch)
treee7c1e0eb3d9fc59812dcfd06a603cb8884399389
parente58c64a03c931bfddbcae238d54ac63a67b6fa35 (diff)
downloadnixos-hardware-76f681355cb6c2aab79d190907fbb521bd19ec87.tar.gz
nixos-hardware-76f681355cb6c2aab79d190907fbb521bd19ec87.tar.xz
Change TLP charge thresholds
-rw-r--r--lenovo/thinkpad/x230/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/lenovo/thinkpad/x230/default.nix b/lenovo/thinkpad/x230/default.nix
index 58b09f4..6c528ce 100644
--- a/lenovo/thinkpad/x230/default.nix
+++ b/lenovo/thinkpad/x230/default.nix
@@ -16,4 +16,10 @@
services.xserver.deviceSection = lib.mkDefault ''
Option "TearFree" "true"
'';
+
+ services.tlp.extraConfig = lib.mkDefault ''
+ START_CHARGE_THRESH_BAT0=67
+ STOP_CHARGE_THRESH_BAT0=100
+ '';
+
}