From 7bfdc0f222f49c7251a36baf9cbd2cf7078b164e Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Sat, 15 Nov 2025 23:25:49 -0500 Subject: [PATCH] yarn: delete fancontrol --- etcnixos/system-yarn.nix | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/etcnixos/system-yarn.nix b/etcnixos/system-yarn.nix index d15f976..0124105 100644 --- a/etcnixos/system-yarn.nix +++ b/etcnixos/system-yarn.nix @@ -17,12 +17,6 @@ inputs.nixos-hardware.nixosModules.common-cpu-amd-zenpower ]; networking.hostId = "abf570f9"; - boot = { - kernelModules = [ - # kernel module for case fan control - "nct6775" - ]; - }; # services.openssh = { # enable = true; @@ -49,29 +43,4 @@ systemd.services.lactd.wantedBy = [ "multi-user.target" ]; systemd.services.lactd.serviceConfig.ExecStartPre = "${lib.getExe pkgs.bash} -c \"sleep 3s\""; - - # control case fans with gpu temperature - # I have case fans attached to my gpu for better cooling - hardware.fancontrol = { - enable = false; - config = - let - select_hwmon = "hwmon/hwmon[[:print:]]*"; - gpu_path = "/sys/bus/pci/drivers/amdgpu/0000:0c:00.0/${select_hwmon}"; - mobo_path = "/sys/devices/platform/nct6775.656/${select_hwmon}"; - fan_speed = "${mobo_path}/pwm4"; - in - '' - INTERVAL=10 - FCTEMPS=${fan_speed}=${gpu_path}/temp1_input - FCFANS= ${fan_speed}=${mobo_path}/fan4_input - MINTEMP=${fan_speed}=40 - MAXTEMP=${fan_speed}=80 - MINSTART=${fan_speed}=150 - MINSTOP=${fan_speed}=0 - MAXPWM=${fan_speed}=255 - ''; - }; - - systemd.services.fancontrol.serviceConfig.ExecStartPre = "${lib.getExe pkgs.bash} -c \"sleep 3s\""; }