From 0d95888a28a16efae7261f8c1246f1430d703328 Mon Sep 17 00:00:00 2001 From: Connor Adams Date: Thu, 15 Jan 2026 00:25:13 +0000 Subject: [PATCH 1/2] feat: add aarch64-linux support Enable building on ARM64 Linux (e.g., Raspberry Pi 5). The gateway package already handles aarch64 architecture detection via pnpmArch - this just adds the system to the supported list. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 7067080a..cc9e20e8 100644 --- a/flake.nix +++ b/flake.nix @@ -20,7 +20,7 @@ let overlay = import ./nix/overlay.nix; sourceInfoStable = import ./nix/sources/clawdbot-source.nix; - systems = [ "x86_64-linux" "aarch64-darwin" ]; + systems = [ "x86_64-linux" "aarch64-darwin" "aarch64-linux" ]; in flake-utils.lib.eachSystem systems (system: let From 9f479e6476d0eb06aeb542dd61a1047f34b1be2f Mon Sep 17 00:00:00 2001 From: Connor Adams Date: Thu, 15 Jan 2026 00:53:28 +0000 Subject: [PATCH 2/2] fix: use run helper instead of hardcoded /bin paths NixOS doesn't have /bin/mkdir or /bin/ln - use home-manager's run helper which works cross-platform. --- nix/modules/home-manager/clawdbot.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/modules/home-manager/clawdbot.nix b/nix/modules/home-manager/clawdbot.nix index 1b59d8b3..b5c8e7a8 100644 --- a/nix/modules/home-manager/clawdbot.nix +++ b/nix/modules/home-manager/clawdbot.nix @@ -1176,13 +1176,13 @@ in { ); home.activation.clawdbotDirs = lib.hm.dag.entryAfter [ "writeBoundary" ] '' - /bin/mkdir -p ${lib.concatStringsSep " " (lib.concatMap (item: item.dirs) instanceConfigs)} - ${lib.optionalString (pluginStateDirsAll != []) "/bin/mkdir -p ${lib.concatStringsSep " " pluginStateDirsAll}"} + run mkdir -p ${lib.concatStringsSep " " (lib.concatMap (item: item.dirs) instanceConfigs)} + ${lib.optionalString (pluginStateDirsAll != []) "run mkdir -p ${lib.concatStringsSep " " pluginStateDirsAll}"} ''; home.activation.clawdbotConfigFiles = lib.hm.dag.entryAfter [ "clawdbotDirs" ] '' set -euo pipefail - ${lib.concatStringsSep "\n" (map (item: "/bin/ln -sfn ${item.configFile} ${item.configPath}") instanceConfigs)} + ${lib.concatStringsSep "\n" (map (item: "run ln -sfn ${item.configFile} ${item.configPath}") instanceConfigs)} ''; home.activation.clawdbotPluginGuard = lib.hm.dag.entryAfter [ "writeBoundary" ] ''