From 3743a1db68290d39dfc9e16d9d5599a9c2c93d69 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 24 Mar 2025 13:22:14 -0400 Subject: [PATCH] add delay to fancontrol and lactd to wait for gpu --- etcnixos/system-yarn.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etcnixos/system-yarn.nix b/etcnixos/system-yarn.nix index fe3bfff..43dc8d3 100644 --- a/etcnixos/system-yarn.nix +++ b/etcnixos/system-yarn.nix @@ -71,6 +71,8 @@ systemd.packages = with pkgs; [ lact ]; 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 = { @@ -93,4 +95,6 @@ MAXPWM=${fan_speed}=255 ''; }; + + systemd.services.fancontrol.serviceConfig.ExecStartPre = "${lib.getExe pkgs.bash} -c \"sleep 3s\""; }