From 9f0a3640d8b199d64e43648744645541816e130f Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 29 Nov 2024 15:47:35 +0100 Subject: [PATCH] add tlp --- modules/desktop-environment/default.nix | 1 + modules/desktop-environment/tlp.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 modules/desktop-environment/tlp.nix diff --git a/modules/desktop-environment/default.nix b/modules/desktop-environment/default.nix index 73050ec..d6030ad 100644 --- a/modules/desktop-environment/default.nix +++ b/modules/desktop-environment/default.nix @@ -5,6 +5,7 @@ ./flatpak.nix ./home ./dm.nix + ./tlp.nix ]; services.upower = { enable = true; diff --git a/modules/desktop-environment/tlp.nix b/modules/desktop-environment/tlp.nix new file mode 100644 index 0000000..88aa4d7 --- /dev/null +++ b/modules/desktop-environment/tlp.nix @@ -0,0 +1,9 @@ +{...}: { + services.tlp = { + enable = true; + settings = { + START_CHARGE_THRESH_BAT0 = "70"; + STOP_CHARGE_TRESH_BAT0 = "85"; + }; + }; +}