REA Nix flakes notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

Nix flakes use flake.nix + flake.lock to pin input identity for reproducible builds. In REA 6.7.x, treat flake.lock as Evidence beside archive/native routes — not as a Nix evaluator.

Mental model

  1. Authorize the flake files (+ any local store paths/artifacts you hold).
  2. Quote selected locked nodes / rev / narHash (or equivalent) lines you actually see.
  3. Built archives/binaries → documented REA routes on absolute paths.
  4. Distro package cousins → rea-debian-debs / rea-rpm-specs when the case is .deb/.rpm, not flakes.
  5. Do not invent a nixpkgs closure REA never evaluated.

Minimal path

# authorized flake.lock (+ flake.nix / local outputs you hold)
# quote selected locked inputs into case notes
# REA archive/native routes on /absolute/path/artifact --json
# do not invent: rea inspect_flake .

Compare

ArtifactHonest posture
flake.lockLocked input identity facts
flake.nixDeclared inputs/outputs (quote, don't eval)
SBOM cousinsrea-sbom-notes
.deb / .rpm cousinsrea-debian-debs / rea-rpm-specs

Scope we will not cover

  • No inventing inspect_flake / automatic nixpkgs crawlers.
  • No binary-cache or forge credential theft.
  • No pirate redistribution of proprietary flake inputs.
  • No crack framing for commercial apps packaged with Nix.

RepoRead is unofficial. Prefer lock/archive honesty + DISCLAIMER.md.

FAQ

flake.nix vs flake.lock?

flake.nix declares inputs/outputs; flake.lock pins resolved revisions/hashes. Quote lock pins you actually see when identity matters.

Is there inspect_flake in 6.7.0?

Not assumed. Quote locked inputs, then hand local store paths/archives/binaries to documented routes. Do not invent inspect_flake.

Does REA run nix build or talk to GitHub/gitlab inputs?

No. Local trees and artifacts only. No forge credential theft.

Missing lock / impure eval?

Record the gap. Do not invent a nix flake metadata result REA never ran.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources