diff --git a/flake.nix b/flake.nix index 832a52a..4dabe74 100644 --- a/flake.nix +++ b/flake.nix @@ -308,6 +308,7 @@ "nix-deck-kernel" = self.nixosConfigurations.nix-deck.config.boot.kernelPackages.kernel; # OpenClaw docker image (pulled + augmented with nix tools) "openclaw-image" = pkgs.custom.openclaw-image; + "openclaw-runtime-closure" = pkgs.custom.openclaw-runtime-closure; } else { } diff --git a/packages/default.nix b/packages/default.nix index 0f1ab7d..0c76547 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -10,4 +10,5 @@ rec { opencode = pkgs.callPackage ./opencode { }; qmd = pkgs.callPackage ./qmd { }; openclaw-image = pkgs.callPackage ./openclaw-image { inherit qmd; }; + openclaw-runtime-closure = pkgs.callPackage ./openclaw-image/runtime-closure.nix { inherit qmd; }; } diff --git a/packages/openclaw-image/runtime-closure.nix b/packages/openclaw-image/runtime-closure.nix new file mode 100644 index 0000000..9f511f2 --- /dev/null +++ b/packages/openclaw-image/runtime-closure.nix @@ -0,0 +1,22 @@ +{ + pkgs, + qmd, +}: + +# This package creates a store path that transitively depends on all packages +# that should be available at runtime in the OpenClaw pod. +# CI uses this to push a single closure to Harmonia. +pkgs.symlinkJoin { + name = "openclaw-runtime-closure"; + paths = [ + pkgs.nodejs_22 + pkgs.kubectl + pkgs.jq + pkgs.git + pkgs.emacs + pkgs.tsx + pkgs.tea + (pkgs.python3.withPackages (ps: [ ps.pymupdf ])) + qmd + ]; +}