From 9ff43bc836572811997cc3da9a218cc6a51ac934 Mon Sep 17 00:00:00 2001 From: teesh3rt Date: Tue, 3 Mar 2026 11:58:53 +0200 Subject: [PATCH] fix: openclaw-gateway service config (PATH, network-online.target, RestartSec) --- modules/server/openclaw.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/server/openclaw.nix b/modules/server/openclaw.nix index c12de19..ff502a2 100644 --- a/modules/server/openclaw.nix +++ b/modules/server/openclaw.nix @@ -20,6 +20,7 @@ in { }; environment.systemPackages = with pkgs; [ + google-chrome whisper-cpp libqalculate yt-dlp @@ -54,9 +55,15 @@ in { }; systemd.user.services.openclaw-gateway = { - Service.Environment = [ - ''PATH="$PATH:/run/current-system/sw/bin/"'' - ]; + Unit = { + After = ["network-online.target"]; + Wants = ["network-online.target"]; + }; + Service = { + Environment = [ + "PATH=/run/wrappers/bin:/home/teesh/.nix-profile/bin:/nix/profile/bin:/home/teesh/.local/state/nix/profile/bin:/etc/profiles/per-user/teesh/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/teesh/.local/bin:/home/teesh/bin:/usr/local/bin:/usr/bin:/bin" + ]; + }; }; }; }