From d9aff9c530243252bf3fc5e53a642bc55bdf3f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 1 Apr 2022 21:43:03 +0100 Subject: [PATCH] add more temp sensors for fan control --- nixos/boxes/foureighty/default.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/nixos/boxes/foureighty/default.nix b/nixos/boxes/foureighty/default.nix index d031e9ee..7c981a37 100644 --- a/nixos/boxes/foureighty/default.nix +++ b/nixos/boxes/foureighty/default.nix @@ -38,7 +38,27 @@ hardware.trackpoint.enable = true; services.hardware.bolt.enable = true; boot.extraModprobeConfig = "options thinkpad_acpi fan_control=1"; - services.thinkfan.enable = true; + services.thinkfan = { + enable = true; + sensors = [ + { + type = "hwmon"; + query = "/sys/class/hwmon"; + name = "coretemp"; + indices = [ 1 2 3 ]; + } + { + type = "hwmon"; + query = "/sys/devices/platform/thinkpad_hwmon/hwmon"; + indices = [ 1 ]; + } + { + type = "tpacpi"; + query = "/proc/acpi/ibm/thermal"; + indices = [ 0 ]; + } + ]; + }; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.video.hidpi.enable = lib.mkDefault true;