diff --git a/hosts/hl-terra1.nix b/hosts/hl-terra1.nix index 9a802bc..a9d11f3 100644 --- a/hosts/hl-terra1.nix +++ b/hosts/hl-terra1.nix @@ -6,5 +6,22 @@ # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.extraModulePackages = with pkgs.linuxPackages; [ it87 ]; + boot.kernelModules = ["coretemp" "it87" "drivetemp"]; +systemd.services.fancontrol = { + enable = true; + description = "Fan control"; + wantedBy = ["multi-user.target" "graphical.target" "rescue.target"]; + + unitConfig = { + Type = "simple"; + }; + + serviceConfig = { + ExecStart = "${pkgs.lm_sensors}/bin/fancontrol"; + Restart = "always"; + }; +}; + }