summary refs log tree commit diff stats
path: root/system/settings/hardware
diff options
context:
space:
mode:
authorAlan Pearce2020-03-17 16:22:58 +0100
committerAlan Pearce2020-03-17 16:24:09 +0100
commit324e4b68d5565e7fdcbfa3626eb07d32d15f655a (patch)
treea0ad77aeade0e70cc956725be6fe51c0349e06f0 /system/settings/hardware
parentbbc7e8f724bac6d6303cd73695e4a846609c978d (diff)
downloadnixfiles-324e4b68d5565e7fdcbfa3626eb07d32d15f655a.tar.lz
nixfiles-324e4b68d5565e7fdcbfa3626eb07d32d15f655a.tar.zst
nixfiles-324e4b68d5565e7fdcbfa3626eb07d32d15f655a.zip
thinkpad: enable fan control
Diffstat (limited to 'system/settings/hardware')
-rw-r--r--system/settings/hardware/thinkpad.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/settings/hardware/thinkpad.nix b/system/settings/hardware/thinkpad.nix
index e4ddb829..4f4e6b8c 100644
--- a/system/settings/hardware/thinkpad.nix
+++ b/system/settings/hardware/thinkpad.nix
@@ -2,11 +2,18 @@
 
 { boot.kernelModules = [ ];
   boot.blacklistedKernelModules = [ "thinkpad_ec" ];
+  boot.extraModulePackages = with config.boot.kernelPackages; [
+    acpi_call
+  ];
 
   services.fwupd = {
     enable = true;
   };
 
+  services.thinkfan = {
+    enable = true;
+  };
+
   imports = [
     ./bare-metal.nix
     ./laptop.nix