From f5e720aba84fd931bbdb90ff39c010a08bc74ab2 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Fri, 3 May 2013 03:28:04 +0200 Subject: [PATCH] adding sensor option to thinkfan --- modules/services/hardware/thinkfan.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/services/hardware/thinkfan.nix b/modules/services/hardware/thinkfan.nix index 7961477da85..b39c9cb1d9b 100644 --- a/modules/services/hardware/thinkfan.nix +++ b/modules/services/hardware/thinkfan.nix @@ -41,7 +41,7 @@ let # All numbers are integers. # - sensor /proc/acpi/ibm/thermal (0, 10, 15, 2, 10, 5, 0, 3, 0, 3) + sensor ${cfg.sensor} (0, 10, 15, 2, 10, 5, 0, 3, 0, 3) (0, 0, 55) (1, 48, 60) @@ -65,6 +65,13 @@ in { ''; }; + sensor = mkOption { + default = "/proc/acpi/ibm/thermal"; + description ='' + Sensor used by thinkfan + ''; + }; + }; };