nixos/mbpfan: minor changes

main
bb2020 2 years ago
parent 906b1bbe58
commit 8bdcffc4fe
  1. 22
      nixos/modules/services/misc/mbpfan.nix

@ -31,7 +31,7 @@ in {
settings = mkOption { settings = mkOption {
default = {}; default = {};
description = "The INI configuration for Mbpfan."; description = "INI configuration for Mbpfan.";
type = types.submodule { type = types.submodule {
freeformType = settingsFormat.type; freeformType = settingsFormat.type;
@ -39,32 +39,26 @@ in {
type = types.nullOr types.int; type = types.nullOr types.int;
default = 2000; default = 2000;
description = '' description = ''
The minimum fan speed. Setting to null enables automatic detection. You can check minimum and maximum fan limits with
Check minimum fan limits with "cat /sys/devices/platform/applesmc.768/fan*_min". "cat /sys/devices/platform/applesmc.768/fan*_min" and
''; "cat /sys/devices/platform/applesmc.768/fan*_max" respectively.
}; Setting to null implies using default value from applesmc.
options.general.max_fan1_speed = mkOption {
type = types.nullOr types.int;
default = 6199;
description = ''
The maximum fan speed. Setting to null enables automatic detection.
Check maximum fan limits with "cat /sys/devices/platform/applesmc.768/fan*_max".
''; '';
}; };
options.general.low_temp = mkOption { options.general.low_temp = mkOption {
type = types.int; type = types.int;
default = 55; default = 55;
description = "Temperature below which fan speed will be at minimum. Try ranges 55-63."; description = "If temperature is below this, fans will run at minimum speed.";
}; };
options.general.high_temp = mkOption { options.general.high_temp = mkOption {
type = types.int; type = types.int;
default = 58; default = 58;
description = "Fan will increase speed when higher than this temperature. Try ranges 58-66."; description = "If temperature is above this, fan speed will gradually increase.";
}; };
options.general.max_temp = mkOption { options.general.max_temp = mkOption {
type = types.int; type = types.int;
default = 86; default = 86;
description = "Fan will run at full speed above this temperature. Do not set it > 90."; description = "If temperature is above this, fans will run at maximum speed.";
}; };
options.general.polling_interval = mkOption { options.general.polling_interval = mkOption {
type = types.int; type = types.int;

Loading…
Cancel
Save