Fix PATH environment variable for git access
This commit is contained in:
parent
cd801d325b
commit
36880c0135
1 changed files with 1 additions and 1 deletions
|
|
@ -86,6 +86,7 @@ in
|
||||||
"OPENCLAW_CONFIG_DIR=${configDir}"
|
"OPENCLAW_CONFIG_DIR=${configDir}"
|
||||||
"OPENCLAW_DATA_DIR=${dataDir}"
|
"OPENCLAW_DATA_DIR=${dataDir}"
|
||||||
"OPENCLAW_WORKSPACE_DIR=${workspaceDir}"
|
"OPENCLAW_WORKSPACE_DIR=${workspaceDir}"
|
||||||
|
"PATH=${pkgs.nodejs_22}/bin:${pkgs.git}/bin:${pkgs.coreutils}/bin"
|
||||||
];
|
];
|
||||||
|
|
||||||
EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile;
|
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}";
|
ExecStart = "${pkgs.nodejs_22}/bin/npx openclaw gateway start --port ${toString cfg.port}";
|
||||||
Path = [ pkgs.nodejs_22 pkgs.git pkgs.coreutils ];
|
|
||||||
|
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "10s";
|
RestartSec = "10s";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue