aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-11-22 12:53:47 -0800
committerMark Nipper <nipsy@bitgnome.net>2024-11-22 12:53:47 -0800
commit23644cbfd596dfec0d7b8aa58ad5ce98736045ef (patch)
tree7af56bc3012fa60a594d5e2ada511c5bfab5f4e3
parentf180f7e86e29cd4cb8a4b992cc31e8b6f76a19da (diff)
downloadnix-23644cbfd596dfec0d7b8aa58ad5ce98736045ef.tar
nix-23644cbfd596dfec0d7b8aa58ad5ce98736045ef.tar.gz
nix-23644cbfd596dfec0d7b8aa58ad5ce98736045ef.tar.bz2
nix-23644cbfd596dfec0d7b8aa58ad5ce98736045ef.tar.lz
nix-23644cbfd596dfec0d7b8aa58ad5ce98736045ef.tar.xz
nix-23644cbfd596dfec0d7b8aa58ad5ce98736045ef.tar.zst
nix-23644cbfd596dfec0d7b8aa58ad5ce98736045ef.zip
Add tlp @ginaz
-rw-r--r--hosts/common/optional/services/tlp.nix22
1 files changed, 17 insertions, 5 deletions
diff --git a/hosts/common/optional/services/tlp.nix b/hosts/common/optional/services/tlp.nix
index 967f197..6eb0b82 100644
--- a/hosts/common/optional/services/tlp.nix
+++ b/hosts/common/optional/services/tlp.nix
@@ -1,9 +1,21 @@
+{config, lib, ...}:
{
- services.tlp = {
- enable = true;
- settings = {
- START_CHARGE_THRESH_BAT0 = 40;
- STOP_CHARGE_THRESH_BAT0 = 50;
+ services.tlp.enable = true;
+
+ lib.mkIf ((builtins.match "^(jupiter|neptune|saturn|uranus)$" config.networking.hostName) != null) {
+ services.tlp = {
+ settings = {
+ START_CHARGE_THRESH_BAT0 = 40;
+ STOP_CHARGE_THRESH_BAT0 = 50;
+ };
+ };
+ };
+
+ lib.mkIf (config.networking.hostName == "ginaz") {
+ services.tlp = {
+ settings = {
+ STOP_CHARGE_THRESH_BAT0 = 1;
+ };
};
};
}