about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-03-07T11·25+0300
committertazjin <tazjin@tvl.su>2022-03-07T11·35+0000
commitc1d016378349c277348af188d2a7863d0f33e12c (patch)
treef330c6ac5a2666b4dfc8914356d1a9293d553c0a
parent50e6d3d77e1c1d2ca1268dbd748ca6497c659ef9 (diff)
chore(tazjin/tverskoy): Remove tlp charge threshold configuration r/3894
While in Egypt, I am on the go more often and actually having the
machine charge fully is quite useful.

Change-Id: I45109057936a0b1d8075f9eb5dcd77c45fce893d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5352
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r--users/tazjin/nixos/tverskoy/default.nix9
1 files changed, 2 insertions, 7 deletions
diff --git a/users/tazjin/nixos/tverskoy/default.nix b/users/tazjin/nixos/tverskoy/default.nix
index f07c5cb709dc..b8cd20380ae9 100644
--- a/users/tazjin/nixos/tverskoy/default.nix
+++ b/users/tazjin/nixos/tverskoy/default.nix
@@ -177,13 +177,8 @@ lib.fix (self: {
       SUBSYSTEM=="i2c-dev", ACTION=="add", DEVPATH=="/devices/pci0000:00/0000:00:08.1/0000:06:00.0/i2c-5/i2c-dev/i2c-5", SYMLINK+="i2c-amdgpu-dm", TAG+="uaccess"
     '';
 
-    # Configure TLP to keep battery charge between 40-70% while
-    # plugged in to the wall (thanks etu for the recommendation).
-    tlp = {
-      enable = true;
-      settings.START_CHARGE_THRESH_BAT0 = 40;
-      settings.STOP_CHARGE_THRESH_BAT0 = 70;
-    };
+    # Enable power-saving features.
+    tlp.enable = true;
 
     xserver = {
       enable = true;