fix: openclaw-gateway service config (PATH, network-online.target, RestartSec)

This commit is contained in:
Teesh 2026-03-03 11:58:53 +02:00
parent 2e840f3689
commit 9ff43bc836

View file

@ -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"
];
};
};
};
}