RFC: community-maintained Nix packages for Buzz agent tooling
Summary
Would the maintainers be open to a community-maintained Nix integration focused on Buzz's agent-facing Rust binaries?
I am evaluating a private Buzz deployment on NixOS. The official OCI image and Compose/Helm assets already provide a sensible server deployment boundary, so I am not proposing to replace them or add a Buzz-specific NixOS service module. The gap for this deployment is installing the agent tooling reproducibly on NixOS and other Nix-managed development machines.
Current state
As of July 2026:
- Contributor tooling is provided through Hermit, with a manually managed
Rust/Node/pnpm/
justtoolchain as the alternative. - Linux desktop releases are distributed as
.AppImageand.debpackages, with the agent executables bundled as Tauri sidecars. - The agent-facing executables are not published as standalone release artifacts.
- The repository has no
flake.nix, Nix package expressions, or existing Nix/NixOS issue or pull request that I could find.
NixOS can already run a relay from an OCI image pinned by digest. The remaining friction is getting these tools from the Rust workspace onto agent hosts:
buzz-clibuzz-acpbuzz-agentbuzz-dev-mcp
Proposed initial scope
I would be happy to prototype and maintain a small, optional flake that:
- Builds only the four agent-facing Rust packages above from the pinned
workspace source and
Cargo.lock. - Exposes conventional
packagesoutputs and anix runentry point forbuzz-cli. - Starts with
x86_64-linux, then adds other platforms only after their builds are validated. - Adds a lightweight flake check for the supported package outputs.
- Coexists with Hermit rather than replacing the documented contributor workflow.
A Nix development shell could be considered separately after the package boundary is working. It does not need to be part of the first contribution.
Explicit non-goals
The initial work would not:
- Package the Tauri desktop application.
- Replace the official OCI, Compose, or Helm deployment paths.
- Add or maintain a bespoke NixOS module for the relay.
- Re-express Postgres, Redis, MinIO, or the production topology as native NixOS services.
- Require existing contributors to install or use Nix.
Why ask upstream first?
An in-repository flake can track Buzz's workspace membership, Rust version, and locked dependencies in the same change that updates them. It would also make the CLI directly available through a command such as:
nix run github:block/buzz#buzz-cli
However, carrying the packaging downstream may be preferable while Buzz is moving quickly. I would rather follow the maintainers' preferred ownership and CI boundary before preparing a pull request.
Maintainer guidance requested
- Would you accept an optional, community-maintained
flake.nixandflake.lockwith the narrow scope above? - Would you prefer that this remain in a separate downstream repository until Buzz's agent tooling stabilizes?
- Are the four proposed binaries the right initial boundary, or should they be split or expanded?
- Which platforms, if any, would you expect an in-repository flake to support in CI?
- Would standalone upstream binary release artifacts be a better long-term integration boundary than building these tools from source with Nix?
If the in-repository direction is welcome, I can follow up with a focused PR and take responsibility for the initial packaging updates.
For my own use, I went ahead and packaged Buzz in a separate flake: https://github.com/mulatta/buzz.nix.
This started as a way to install and pin Buzz reproducibly across my Nix-managed machines. If upstream decides to provide official Nix packages, please feel free to reuse any part of it. I would also be happy to contribute a focused PR limited to the agent-facing tools originally proposed in this issue.
The flake currently pins the Buzz release and source hash, the Cargo dependency sets derived from the upstream lockfiles, and the upstream Rust toolchain. This has been useful for reproducible installation, deployment pinning, and rollback.
I initially considered using crane because Buzz is a Cargo monorepo, and separating shared dependency artifacts from individual package builds could allow the Rust packages to reuse more of the compilation cache. However, the packaging repository does not carry a copy of Buzz's Cargo.lock. The lockfile is instead contained in the fetched upstream source, and reading a file from that source derivation during flake evaluation would introduce import-from-derivation. Since I wanted the flake to evaluate with allow-import-from-derivation = false, I used fixed Cargo vendor hashes with buildRustPackage instead.
An upstream flake would not have this particular issue because Cargo.lock would be available directly in the source tree. In that setting, crane could be a good fit, especially when several packages from the same workspace are built together. Its practical benefit across fresh CI runners or user machines would still depend on the cache strategy: crane can split and reuse Nix derivations, but a CI job or binary-cache publisher still needs to build and upload those derivations. Without a shared binary cache, a new user would still need to compile them, although repeated local builds and multiple package builds could still benefit.
After implementing the packages, I also found that the Nix code is not especially small once the web workspaces, desktop application, native dependencies, and platform-specific runtime handling are included. Because of that, keeping a dedicated downstream flake also seems like a reasonable long-term maintenance boundary.
I am happy with either direction. If an in-tree integration is preferred, I can prepare a narrower contribution focused on the four agent-facing binaries.
I would be very interested in this being created and officially maintained. The nix philosophy is a very close neighbor of the content-addressed spirit of nostr.
Update: I closed #8047 and #8041. Nix packaging now goes through nixpkgs instead: NixOS/nixpkgs#570552 (CLI and agent tools), NixOS/nixpkgs#571723 (desktop) and NixOS/nixpkgs#574877 (relay with a NixOS module), all drafts for now. Upstream fixes they carry as patches until merged: #8031, #8035, #8071.
@kleinbem.
nixpkgs PR seems to be in progress, if you ready, i can review yours.
Also, i've now merged nixosModules in mulatta/buzz.nix. I'm testing this with my live homelab. https://github.com/mulatta/dots/pull/586