From 981a6d19e20dd67b164094f805755c381f159dc8 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Sat, 22 Oct 2022 13:24:26 +0200 Subject: [PATCH] [Laptop] Add fancontrol if config is set Will need to find a way to automatically make a fancontrol config --- laptop.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/laptop.nix b/laptop.nix index 80c46e0..7c5337b 100644 --- a/laptop.nix +++ b/laptop.nix @@ -35,6 +35,10 @@ in { pcie_aspm = mkIf cfg.tweaks.pcieAspmForce "force"; }; + hardware.fancontrol = { + enable = mkIf (! isNull config.hardware.fancontrol.config) true; + }; + systemd.services.aspm-force-enable = let aspm_enable = pkgs.callPackage ./packages/aspm_enable { };