all repos — nixfiles @ 7d36785ec81a2ce337512816ec5c75273bf969b4

System and user configuration, managed by nix and home-manager

T470s: Use reasonable temperature sensor
Alan Pearce alan@alanpearce.eu
Thu, 22 Nov 2018 16:16:23 +0100
commit

7d36785ec81a2ce337512816ec5c75273bf969b4

parent

300bca067cdeadcae0ef5fc10e870358aaf76bda

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M modules/machines/t470s.nixmodules/machines/t470s.nix
@@ -7,6 +7,10 @@ ]; 
   boot.kernelPackages = pkgs.linuxPackages_4_18;
 
+  services.thinkfan.sensors = ''
+    hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp1_input
+  '';
+
   systemd.services.ModemManager.enable = true;
 
   hardware.pulseaudio.extraConfig = ''