From a3c7e5993e98914753650cefc5dca57eafacdefe Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Tue, 3 Feb 2026 09:45:52 +0100 Subject: [PATCH] feat: update moltbot to openclaw --- hosts/fw/configuration.nix | 2 +- hosts/fw/modules/{moltbot.nix => openclaw.nix} | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) rename hosts/fw/modules/{moltbot.nix => openclaw.nix} (70%) diff --git a/hosts/fw/configuration.nix b/hosts/fw/configuration.nix index 5e29c0d..4b54b16 100644 --- a/hosts/fw/configuration.nix +++ b/hosts/fw/configuration.nix @@ -38,7 +38,7 @@ ./modules/ai-mailer.nix # ./modules/wazuh.nix - ./modules/moltbot.nix + ./modules/openclaw.nix # web ./modules/web diff --git a/hosts/fw/modules/moltbot.nix b/hosts/fw/modules/openclaw.nix similarity index 70% rename from hosts/fw/modules/moltbot.nix rename to hosts/fw/modules/openclaw.nix index 7bc9295..ad1ef66 100644 --- a/hosts/fw/modules/moltbot.nix +++ b/hosts/fw/modules/openclaw.nix @@ -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"; };