From 7545609607a4ff281bd4ac25815b8ed19c642bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 5 Oct 2024 20:05:37 +0300 Subject: [PATCH] mtworx tlp --- hosts/mtworx/configuration.nix | 8 ++++++++ modules/profiles/desktop/default.nix | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hosts/mtworx/configuration.nix b/hosts/mtworx/configuration.nix index a4bc93b..5afd840 100644 --- a/hosts/mtworx/configuration.nix +++ b/hosts/mtworx/configuration.nix @@ -176,6 +176,14 @@ in }; }; + services.tlp = { + enable = true; + settings = { + START_CHARGE_THRESH_BAT0 = 95; + STOP_CHARGE_THRESH_BAT0 = 100; + }; + }; + users.extraGroups.vboxusers.members = [ "motiejus" ]; environment.systemPackages = with pkgs; [ dnsmasq ]; diff --git a/modules/profiles/desktop/default.nix b/modules/profiles/desktop/default.nix index 61c1cfb..5697e48 100644 --- a/modules/profiles/desktop/default.nix +++ b/modules/profiles/desktop/default.nix @@ -97,8 +97,8 @@ in tlp = { enable = true; settings = { - START_CHARGE_THRESH_BAT0 = 80; - STOP_CHARGE_THRESH_BAT0 = 87; + START_CHARGE_THRESH_BAT0 = lib.mkDefault 80; + STOP_CHARGE_THRESH_BAT0 = lib.mkDefault 87; }; };