From f5548027f0e0ef06d274a86f082a3f20ab2024c9 Mon Sep 17 00:00:00 2001 From: Sparky Date: Wed, 29 Oct 2025 13:48:08 +0100 Subject: [PATCH] Add fancontrol --- configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configuration.nix b/configuration.nix index 0380042..98faa2e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -220,6 +220,7 @@ in git lazydocker lazygit + lm_sensors nixfmt-rfc-style nodejs_20 tmux @@ -228,6 +229,19 @@ in vim ]; + # Enable fan control + services.thermald.enable = true; + hardware.sensor.iio.enable = true; + + # Start fancontrol service + systemd.services.fancontrol = { + description = "Fan speed regulator"; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + ExecStart = "${pkgs.lm_sensors}/bin/fancontrol"; + }; + }; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true;