From 36880c01359bd5901bb3bd2d02f581c9d4dcc003 Mon Sep 17 00:00:00 2001 From: ashisgreat22 Date: Tue, 17 Mar 2026 21:13:47 +0100 Subject: [PATCH] Fix PATH environment variable for git access --- modules/openclaw.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openclaw.nix b/modules/openclaw.nix index 646c5c4..18449b8 100644 --- a/modules/openclaw.nix +++ b/modules/openclaw.nix @@ -86,6 +86,7 @@ in "OPENCLAW_CONFIG_DIR=${configDir}" "OPENCLAW_DATA_DIR=${dataDir}" "OPENCLAW_WORKSPACE_DIR=${workspaceDir}" + "PATH=${pkgs.nodejs_22}/bin:${pkgs.git}/bin:${pkgs.coreutils}/bin" ]; EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile; @@ -96,7 +97,6 @@ in ]; ExecStart = "${pkgs.nodejs_22}/bin/npx openclaw gateway start --port ${toString cfg.port}"; - Path = [ pkgs.nodejs_22 pkgs.git pkgs.coreutils ]; Restart = "on-failure"; RestartSec = "10s";