Skip to content

Commit

Permalink
add disableBatteryTempCheck option + update systemd service
Browse files Browse the repository at this point in the history
  • Loading branch information
Svenum committed Aug 26, 2024
1 parent c5ec1c0 commit ffc964b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nix/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ffc964b

Please sign in to comment.