From ffc964b90780fc1c3405bd6cfdaff08e71823c2a Mon Sep 17 00:00:00 2001 From: Svenum Date: Mon, 26 Aug 2024 22:28:33 +0200 Subject: [PATCH] add disableBatteryTempCheck option + update systemd service --- nix/module.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nix/module.nix b/nix/module.nix index 4ed6d5d..5cd2549 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -16,6 +16,13 @@ in Enable fw-fanctrl systemd service and install the needed packages. ''; }; + disableBatteryTempCheck = mkOption { + type = bool; + default = false; + description = '' + Disable checking battery temperature sensor + ''; + }; config = { defaultStrategy = mkOption { type = str; @@ -100,7 +107,7 @@ in serviceConfig = { Type = "simple"; Restart = "always"; - ExecStart = "${fw-fanctrl}/bin/fw-fanctrl --run --config /etc/fw-fanctrl/config.json --no-log"; + ExecStart = "${fw-fanctrl}/bin/fw-fanctrl run --config /etc/fw-fanctrl/config.json --silent" + lib.strings.optionalString cfg.disableBatteryTempCheck " --no-battery-sensors"; ExecStopPost = "${pkgs.fw-ectool}/bin/ectool autofanctrl"; }; enable = true;