feat(nix): native flake package + NixOS module (#7, #9) #12

Merged
Grok merged 1 commit from feat/nix-package into main 2026-09-26 10:53:07 +02:00
Contributor

Closes #7, closes #9.

What

  • flake.nix + nix/package.nix: native build of the harness (same dist-server/ + dist/ the Dockerfile ships) with Node 24 via fetchPnpmDeps (fetcherVersion 3, own nixpkgs pin so 25.11 hosts work). Binaries: openmausbot, omb, openmausbot-server.
  • nix/module.nix: services.openmausbot systemd unit (runs as the user owning engine logins; PATH includes system/per-user profiles and ~/.local/bin).
  • docs/nixos.md: fleet install / update / engines / orchestra ops checklist.

Why not the Docker wrapper

omb-build from nixos-llm#589 fails in the orchestra nspawn — every docker run dies with bpf_prog_query(BPF_CGROUP_DEVICE) failed: operation not permitted. The native package needs no Docker.

Verified (orchestra container, 2026-09-26)

  • nix build .#openmausbot ✔
  • openmausbot-server with isolated OMB_DATA_DIR: /api/health → "app":"openmausbot", web UI served, engines detected (claude, codex, grok, pi, opencode, cursor, hermes available)
  • omb --help ✔
  • nix flake check --no-build ✔; module evaluated into a nixosSystem, unit text as expected

🤖 Generated with Claude Code

Closes #7, closes #9. ## What - `flake.nix` + `nix/package.nix`: native build of the harness (same `dist-server/` + `dist/` the Dockerfile ships) with Node 24 via `fetchPnpmDeps` (fetcherVersion 3, own nixpkgs pin so 25.11 hosts work). Binaries: `openmausbot`, `omb`, `openmausbot-server`. - `nix/module.nix`: `services.openmausbot` systemd unit (runs as the user owning engine logins; PATH includes system/per-user profiles and `~/.local/bin`). - `docs/nixos.md`: fleet install / update / engines / orchestra ops checklist. ## Why not the Docker wrapper `omb-build` from nixos-llm#589 fails in the orchestra nspawn — every `docker run` dies with `bpf_prog_query(BPF_CGROUP_DEVICE) failed: operation not permitted`. The native package needs no Docker. ## Verified (orchestra container, 2026-09-26) - `nix build .#openmausbot` ✔ - `openmausbot-server` with isolated `OMB_DATA_DIR`: `/api/health` → `"app":"openmausbot"`, web UI served, engines detected (claude, codex, grok, pi, opencode, cursor, hermes available) - `omb --help` ✔ - `nix flake check --no-build` ✔; module evaluated into a nixosSystem, unit text as expected 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(nix): native flake package + NixOS module; document orchestra runtime (#7, #9)
Some checks failed
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled
CI / typecheck + lint (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 1/4) (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 2/4) (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 3/4) (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 4/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 1/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 2/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 3/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 4/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 1/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 2/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 3/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 4/4) (pull_request) Has been cancelled
CI / packaged server smoke (macos-latest) (pull_request) Has been cancelled
CI / packaged server smoke (ubuntu-latest) (pull_request) Has been cancelled
CI / packaged server smoke (windows-latest) (pull_request) Has been cancelled
CI / Windows CUA host smoke (pull_request) Has been cancelled
CI / Electron smokes (macOS) (pull_request) Has been cancelled
CI / typecheck + test (macos-latest) (pull_request) Has been cancelled
CI / typecheck + test (ubuntu-latest) (pull_request) Has been cancelled
CI / typecheck + test (windows-latest) (pull_request) Has been cancelled
CI / cloudflared installer (Linux ARM64) (pull_request) Has been cancelled
CI / open-source edition builds without enterprise/ (pull_request) Has been cancelled
CI / control-plane check + workerd tests + dry run (pull_request) Has been cancelled
CI / renderer smoke (control-omb ui, Ubuntu 24.04) (pull_request) Has been cancelled
CI / package + smoke (Ubuntu 24.04 x64) (pull_request) Has been cancelled
CI / Swift tests + iOS build + thread UI (pull_request) Has been cancelled
CI / Kotlin tests + Android build (pull_request) Has been cancelled
46fc0d0412
Builds dist-server + dist natively with Node 24 via fetchPnpmDeps (no
Docker, no Electron). Exposes openmausbot/omb/openmausbot-server and a
services.openmausbot systemd module. docs/nixos.md covers fleet install,
update, engines, and why the Docker wrapper from nixos-llm#589 cannot run
in the orchestra nspawn (BPF cgroup device denied).

Closes #7
Closes #9

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok merged commit 121b2e295a into main 2026-09-26 10:53:07 +02:00
Grok deleted branch feat/nix-package 2026-09-26 10:53:07 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
donach/openmausbot!12
No description provided.