v0.2.0 is tagged and is a complete rewrite of v0.1. Reintroducing below.
NixFleet is a framework for managing fleets of NixOS and macOS machines with signed GitOps. Truth lives in git and signing keys; the control plane is a caching router for already-signed intent. Compromise of the control plane is an outage, not a breach.
Why NixFleet
NixFleet addresses four converging problems on a NixOS fleet:
- Configuration drift. Imperative tools depend on existing state. NixOS makes drift impossible by construction;
nix buildis the gate. - Trust in the orchestrator. Traditional fleet managers concentrate signing and deploy authority in the control plane. NixFleet inverts this: truth lives in git and signing keys, the CP holds none, agents verify every artefact independently.
- Bolted-on compliance. Regulatory frameworks need traceability that scanners produce after the fact. NixFleet evaluates compliance as a release gate, with a signed evidence chain from commit to host-signed probe.
- Sovereignty. Most cross-platform fleet managers depend on US vendors (MDMs, cloud agents). NixFleet is fully self-hosted; hosts keep running with stock NixOS tools if the framework disappears.
How v0.2 hangs together
The spine is a signed pipeline anchored on one decision procedure. CI signs fleet.resolved.json and revocations.json with the release key; the binary cache signs closures independently. The reconciler’s verify_artifact procedure consumes the typed trust.json (serialised from flake-declared trust roots) and decides what any host is allowed to run. The CP fetches the revocations sidecar from git on every reconcile tick and replays the verified set before minting any cert. The agent pulls its target closure, verifies the signature, activates in a detached transient systemd unit, opens a confirm window, and auto-reverts on silence. Static compliance gates run at CI; runtime probes run on the host and sign their output with the SSH host key. Evidence chain: commit → CI signature → closure hash → host-signed probe.
Operators see one binary, nixfleet. Auditors see two standalone binaries with lean dependency closures so a regulator can verify signed artefacts without the operator network stack.
What v0.2 ships
- Trust roots declared in the flake (
nixfleet.trust.{ciReleaseKey,cacheKeys,orgRootKey}). Algorithm rotation supported end-to-end. - Agent identity mTLS-bound to
/etc/ssh/ssh_host_ed25519_key. Enrollment gated by a signedbootstrap-nonces.jsonallowlist. Replay protection anchored in the fleet repo, not CP-local state. - Magic rollback queued in a detached systemd unit so the agent can’t kill its own activation. Confirm window is the deadline.
- Compliance gate static at CI, runtime on host, output signed and aggregated into the wave-promotion gate.
- Supply chain Crane-cached Rust workspace. HSM-held release key. Revocations sidecar replayed per tick. Prometheus
/metricsis a default-on Cargo feature. - Operator surface
nixfleetumbrella binary; standalone auditor binaries;nixfleet-trust-bootstrapceremony tooling for the offline fleet root and TPM-bound issuance CA.
Quick Start
{
inputs.nixfleet.url = "github:arcanesys/nixfleet";
outputs = { nixpkgs, nixfleet, ... }: let
fleet = nixfleet.lib.mkFleet {
hosts.my-server = {
system = "x86_64-linux";
channel = "stable";
nixosArgs.modules = [
./hardware-configuration.nix
({ ... }: {
services.nixfleet-agent.enable = true;
services.nixfleet-agent.controlPlane.url = "https://cp.example.com:8080";
})
];
};
channels.stable.rolloutPolicy = "all-at-once";
rolloutPolicies.all-at-once = {
strategy = "all-at-once";
waves = [{ selector.all = true; soakMinutes = 0; }];
};
};
in { nixosConfigurations = fleet.nixosConfigurations; };
}
fleet.nixosConfigurations.<host> is a standard nixosSystem. Remove the agent module and the host is vanilla NixOS.
Try It Locally
nixfleet-demo boots a 4-VM reference fleet in ~10 minutes, exercises the canonical GitOps loop, and lets you trigger a signed wave promotion and magic rollback by editing one config.
Ecosystem
Three repos:
- nixfleet (MIT / AGPL): framework, agent, control plane, CLI.
- nixfleet-compliance (MIT): NIS2, DORA, ISO 27001, ANSSI BP-028 controls.
- nixfleet-demo (MIT): 4-VM reference fleet.
Framework ships kernel + contract impls. Service wraps, hardware bundles, and role taxonomies live in the consuming fleet repo, not in nixfleet. Framework stays generic, consumer keeps full ownership of its shape.
v0.3 trajectory
Extends the v0.2 wire protocol, doesn’t break it:
- RFC-0009 hardware-rooted trust (TPM-bound issuance CA, EK-quoted attestation).
- RFC-0010 trust lifecycle (operator roles, rotation, attestation quarantine, threshold-signed channels).
- RFC-0011 freshness-window policy.
- RFC-0012 air-gapped operation via signed bundles.
Links
- Release: v0.2.0
- Repository: arcanesys/nixfleet
- Compliance: arcanesys/nixfleet-compliance
- Demo: arcanesys/nixfleet-demo
- Documentation: arcanesys.github.io/nixfleet
- RFCs: docs/rfcs
- Changelog: CHANGELOG.md
- Pilot: arcanesys.fr/en/pilot
Status
Tagged v0.2.0 (2026-05-19). MIT for framework / agent / CLI; AGPL for the control plane. v0.2 baseline ships RFCs 0001-0008; v0.3 RFC track in progress. The stack runs end-to-end on the author’s own hardware fleet, signed GitOps with TPM-bound trust under daily use. Next gate is pilot validation on external regulated fleets to surface what a single-fleet test bench doesn’t. Pilots open for NIS2 / DORA / ISO 27001 / ANSSI BP-028 operators (see the pilot link). All feedback welcome: API surface, trust model, evidence chain, RFC track.