aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/services/tlp.nix
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-11-22 15:34:21 -0800
committerMark Nipper <nipsy@bitgnome.net>2024-11-22 15:34:21 -0800
commitd1bc83b88ff12912a71fd63b8743cd1643655631 (patch)
tree9cf3731bd3ad603a8cf80d7fc0f77039116c0a3e /hosts/common/optional/services/tlp.nix
parent40f285d6381464e46aa1bdfe1c72cc0ed5adef65 (diff)
downloadnix-d1bc83b88ff12912a71fd63b8743cd1643655631.tar
nix-d1bc83b88ff12912a71fd63b8743cd1643655631.tar.gz
nix-d1bc83b88ff12912a71fd63b8743cd1643655631.tar.bz2
nix-d1bc83b88ff12912a71fd63b8743cd1643655631.tar.lz
nix-d1bc83b88ff12912a71fd63b8743cd1643655631.tar.xz
nix-d1bc83b88ff12912a71fd63b8743cd1643655631.tar.zst
nix-d1bc83b88ff12912a71fd63b8743cd1643655631.zip
Fix conditional syntax
Diffstat (limited to 'hosts/common/optional/services/tlp.nix')
-rw-r--r--hosts/common/optional/services/tlp.nix22
1 files changed, 9 insertions, 13 deletions
diff --git a/hosts/common/optional/services/tlp.nix b/hosts/common/optional/services/tlp.nix
index 6eb0b82..64f1960 100644
--- a/hosts/common/optional/services/tlp.nix
+++ b/hosts/common/optional/services/tlp.nix
@@ -1,21 +1,17 @@
{config, lib, ...}:
{
- 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;
- };
+ services.tlp = lib.mkIf ((builtins.match "^(jupiter|neptune|saturn|uranus)$" config.networking.hostName) != null) {
+ enable = true;
+ 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;
- };
+ services.tlp = lib.mkIf (config.networking.hostName == "ginaz") {
+ enable = true;
+ settings = {
+ STOP_CHARGE_THRESH_BAT0 = 1;
};
};
}