feat: update moltbot to openclaw
This commit is contained in:
parent
470f84a4b9
commit
a3c7e5993e
2 changed files with 9 additions and 11 deletions
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
./modules/ai-mailer.nix
|
./modules/ai-mailer.nix
|
||||||
# ./modules/wazuh.nix
|
# ./modules/wazuh.nix
|
||||||
./modules/moltbot.nix
|
./modules/openclaw.nix
|
||||||
|
|
||||||
# web
|
# web
|
||||||
./modules/web
|
./modules/web
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
# Moltbot - AI assistant with WebChat
|
# openclaw - AI assistant with WebChat
|
||||||
# Container with browser support for web automation
|
# Container with browser support for web automation
|
||||||
|
|
||||||
virtualisation.oci-containers.backend = "podman";
|
virtualisation.oci-containers.backend = "podman";
|
||||||
|
|
@ -15,14 +15,14 @@ with lib;
|
||||||
# Persistent directories on host for backup
|
# Persistent directories on host for backup
|
||||||
# UID 1000 is the 'node' user inside the container
|
# UID 1000 is the 'node' user inside the container
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /var/lib/moltbot 0755 1000 1000 - -"
|
"d /var/lib/openclaw 0755 1000 1000 - -"
|
||||||
"d /var/lib/moltbot/home 0755 1000 1000 - -"
|
"d /var/lib/openclaw/home 0755 1000 1000 - -"
|
||||||
"d /var/lib/moltbot/extensions 0755 1000 1000 - -"
|
"d /var/lib/openclaw/extensions 0755 1000 1000 - -"
|
||||||
"d /run/moltbot 0700 root root - -"
|
"d /run/moltbot 0700 root root - -"
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.moltbot = {
|
virtualisation.oci-containers.containers.openclaw = {
|
||||||
image = "ghcr.io/moltbot/moltbot:main";
|
image = "ghcr.io/openclaw/openclaw:main";
|
||||||
|
|
||||||
# Run gateway mode, bind to all interfaces in container
|
# Run gateway mode, bind to all interfaces in container
|
||||||
cmd = [ "dist/index.js" "gateway" "--bind" "lan" "--port" "18789" "--allow-unconfigured" ];
|
cmd = [ "dist/index.js" "gateway" "--bind" "lan" "--port" "18789" "--allow-unconfigured" ];
|
||||||
|
|
@ -33,15 +33,13 @@ with lib;
|
||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/lib/moltbot/home:/home/node:rw"
|
"/var/lib/openclaw/home:/home/node:rw"
|
||||||
"/var/lib/moltbot/extensions:/app/extensions:rw"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
HOME = "/home/node";
|
HOME = "/home/node";
|
||||||
TERM = "xterm-256color";
|
TERM = "xterm-256color";
|
||||||
MOLTBOT_STATE_DIR = "/home/node/.moltbot";
|
OPENCLAW_STATE_DIR = "/home/node/.openclaw";
|
||||||
CLAWDBOT_STATE_DIR = "/home/node/.moltbot";
|
|
||||||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = "false";
|
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = "false";
|
||||||
};
|
};
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue