From f180f7e86e29cd4cb8a4b992cc31e8b6f76a19da Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Fri, 22 Nov 2024 11:18:28 -0800 Subject: Add tlp for planets --- hosts/common/optional/services/tlp.nix | 9 +++++++++ hosts/jupiter/default.nix | 1 + hosts/neptune/default.nix | 1 + hosts/saturn/default.nix | 1 + hosts/uranus/default.nix | 1 + 5 files changed, 13 insertions(+) create mode 100644 hosts/common/optional/services/tlp.nix diff --git a/hosts/common/optional/services/tlp.nix b/hosts/common/optional/services/tlp.nix new file mode 100644 index 0000000..967f197 --- /dev/null +++ b/hosts/common/optional/services/tlp.nix @@ -0,0 +1,9 @@ +{ + services.tlp = { + enable = true; + settings = { + START_CHARGE_THRESH_BAT0 = 40; + STOP_CHARGE_THRESH_BAT0 = 50; + }; + }; +} diff --git a/hosts/jupiter/default.nix b/hosts/jupiter/default.nix index 412342b..2486fb1 100644 --- a/hosts/jupiter/default.nix +++ b/hosts/jupiter/default.nix @@ -25,6 +25,7 @@ ../common/optional/services/fwupd.nix ../common/optional/services/nolid.nix ../common/optional/services/openssh.nix + ../common/optional/services/tlp.nix ../common/optional/zfs.nix ../common/users/nipsy ../common/users/root diff --git a/hosts/neptune/default.nix b/hosts/neptune/default.nix index 02453e7..df17c49 100644 --- a/hosts/neptune/default.nix +++ b/hosts/neptune/default.nix @@ -25,6 +25,7 @@ ../common/optional/services/fwupd.nix ../common/optional/services/nolid.nix ../common/optional/services/openssh.nix + ../common/optional/services/tlp.nix ../common/optional/zfs.nix ../common/users/nipsy ../common/users/root diff --git a/hosts/saturn/default.nix b/hosts/saturn/default.nix index b05fc8a..10e199d 100644 --- a/hosts/saturn/default.nix +++ b/hosts/saturn/default.nix @@ -25,6 +25,7 @@ ../common/optional/services/fwupd.nix ../common/optional/services/nolid.nix ../common/optional/services/openssh.nix + ../common/optional/services/tlp.nix ../common/optional/zfs.nix ../common/users/nipsy ../common/users/root diff --git a/hosts/uranus/default.nix b/hosts/uranus/default.nix index 0f0dd48..2256bc9 100644 --- a/hosts/uranus/default.nix +++ b/hosts/uranus/default.nix @@ -25,6 +25,7 @@ ../common/optional/services/fwupd.nix ../common/optional/services/nolid.nix ../common/optional/services/openssh.nix + ../common/optional/services/tlp.nix ../common/optional/zfs.nix ../common/users/nipsy ../common/users/root -- cgit v1.2.3