Copy config to OpenClaw's actual config location
This commit is contained in:
parent
68240b7319
commit
396d1bd048
1 changed files with 3 additions and 3 deletions
|
|
@ -91,8 +91,8 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
ExecStartPre = [
|
ExecStartPre = [
|
||||||
"${pkgs.coreutils}/bin/mkdir -p ${configDir} ${dataDir} ${workspaceDir}"
|
"${pkgs.coreutils}/bin/mkdir -p ${configDir} ${dataDir} ${workspaceDir} /var/lib/openclaw/.openclaw"
|
||||||
"${pkgs.bash}/bin/bash -c 'cp -n /etc/openclaw/openclaw.json ${configDir}/ || true'"
|
"${pkgs.bash}/bin/bash -c 'cp -n /etc/openclaw/openclaw.json /var/lib/openclaw/.openclaw/openclaw.json || true'"
|
||||||
];
|
];
|
||||||
|
|
||||||
ExecStart = "${pkgs.nodejs_22}/bin/npx openclaw gateway --port ${toString cfg.port} --allow-unconfigured";
|
ExecStart = "${pkgs.nodejs_22}/bin/npx openclaw gateway --port ${toString cfg.port} --allow-unconfigured";
|
||||||
|
|
@ -103,7 +103,7 @@ in
|
||||||
# Security
|
# Security
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
ProtectSystem = "strict";
|
ProtectSystem = "strict";
|
||||||
ReadWritePaths = [ "/var/lib/openclaw" configDir dataDir workspaceDir ];
|
ReadWritePaths = [ "/var/lib/openclaw" "/var/lib/openclaw/.openclaw" configDir dataDir workspaceDir ];
|
||||||
NoNewPrivileges = true;
|
NoNewPrivileges = true;
|
||||||
}
|
}
|
||||||
(lib.mkIf (cfg.environmentFile != null) {
|
(lib.mkIf (cfg.environmentFile != null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue