feat: update moltbot to openclaw

This commit is contained in:
Dominik Polakovics Polakovics 2026-02-03 09:45:52 +01:00
parent 470f84a4b9
commit a3c7e5993e
2 changed files with 9 additions and 11 deletions

View file

@ -38,7 +38,7 @@
./modules/ai-mailer.nix
# ./modules/wazuh.nix
./modules/moltbot.nix
./modules/openclaw.nix
# web
./modules/web

View file

@ -2,7 +2,7 @@
with lib;
{
# Moltbot - AI assistant with WebChat
# openclaw - AI assistant with WebChat
# Container with browser support for web automation
virtualisation.oci-containers.backend = "podman";
@ -15,14 +15,14 @@ with lib;
# Persistent directories on host for backup
# UID 1000 is the 'node' user inside the container
systemd.tmpfiles.rules = [
"d /var/lib/moltbot 0755 1000 1000 - -"
"d /var/lib/moltbot/home 0755 1000 1000 - -"
"d /var/lib/moltbot/extensions 0755 1000 1000 - -"
"d /var/lib/openclaw 0755 1000 1000 - -"
"d /var/lib/openclaw/home 0755 1000 1000 - -"
"d /var/lib/openclaw/extensions 0755 1000 1000 - -"
"d /run/moltbot 0700 root root - -"
];
virtualisation.oci-containers.containers.moltbot = {
image = "ghcr.io/moltbot/moltbot:main";
virtualisation.oci-containers.containers.openclaw = {
image = "ghcr.io/openclaw/openclaw:main";
# Run gateway mode, bind to all interfaces in container
cmd = [ "dist/index.js" "gateway" "--bind" "lan" "--port" "18789" "--allow-unconfigured" ];
@ -33,15 +33,13 @@ with lib;
];
volumes = [
"/var/lib/moltbot/home:/home/node:rw"
"/var/lib/moltbot/extensions:/app/extensions:rw"
"/var/lib/openclaw/home:/home/node:rw"
];
environment = {
HOME = "/home/node";
TERM = "xterm-256color";
MOLTBOT_STATE_DIR = "/home/node/.moltbot";
CLAWDBOT_STATE_DIR = "/home/node/.moltbot";
OPENCLAW_STATE_DIR = "/home/node/.openclaw";
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = "false";
};