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;