[Laptop] Add fancontrol if config is set

Will need to find a way to automatically make a fancontrol config
This commit is contained in:
Antoine Viallon 2022-10-22 13:24:26 +02:00
parent 79e389e3e9
commit 981a6d19e2
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -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 { };