feat(nix): add a package flake with its own locked nixpkgs #5

Merged
jmz merged 1 commit from feat/mirus-nix-flake into release/mirus 2026-11-07 10:51:45 +00:00
Member

Moves the fork's package recipe out of nixos-hosts modules/fleet/overlays/forks.nix into nix/flake.nix, with its own nix/flake.lock. The template for the other forks.

Why: the fleet's nixpkgs bumps change this derivation today, so the publisher recompiles iamb on the 6 GiB builder. With its own lock and no follows, a nixos-hosts nixpkgs bump leaves it alone.

What changes

  • nix/flake.nix: the same recipe (rust 1.97, the vendor hash, VERGEN_GIT_SHA, preVersionCheck). It lives in nix/ because the root flake.nix is upstream's dev flake; leaving that alone keeps upstream merges clean.
  • nix/flake.lock: nixpkgs at 7dcdd87, the rev the fleet is on today, so the toolchain is already cached.
  • .forgejo/workflows/nix.yml: evaluates the out path and builds only the vendor derivation on the untrusted runner, with no compile and no secrets.

No trusted-build job here, on purpose. A workflow comes from the pushed commit, so any writer's branch could target a label on a trusted machine; branch protection does not stop that. The trusted builder pulls the protected branch head itself. Design: /root/fork-packages-standalone-plan.md.

Merge: fast-forward, so the sha that was built is the sha that lands. Nothing in the fleet consumes this yet; the nixos-hosts switch comes after a first real promote.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XMf4EKNjKMd6bwCpS7K4jU

Moves the fork's package recipe out of nixos-hosts `modules/fleet/overlays/forks.nix` into `nix/flake.nix`, with its own `nix/flake.lock`. The template for the other forks. **Why:** the fleet's nixpkgs bumps change this derivation today, so the publisher recompiles iamb on the 6 GiB builder. With its own lock and no `follows`, a nixos-hosts nixpkgs bump leaves it alone. **What changes** - `nix/flake.nix`: the same recipe (rust 1.97, the vendor hash, `VERGEN_GIT_SHA`, `preVersionCheck`). It lives in `nix/` because the root `flake.nix` is upstream's dev flake; leaving that alone keeps upstream merges clean. - `nix/flake.lock`: nixpkgs at 7dcdd87, the rev the fleet is on today, so the toolchain is already cached. - `.forgejo/workflows/nix.yml`: evaluates the out path and builds only the vendor derivation on the untrusted runner, with no compile and no secrets. **No trusted-build job here, on purpose.** A workflow comes from the pushed commit, so any writer's branch could target a label on a trusted machine; branch protection does not stop that. The trusted builder pulls the protected branch head itself. Design: `/root/fork-packages-standalone-plan.md`. **Merge:** fast-forward, so the sha that was built is the sha that lands. Nothing in the fleet consumes this yet; the nixos-hosts switch comes after a first real promote. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XMf4EKNjKMd6bwCpS7K4jU
feat(nix): add a package flake with its own locked nixpkgs
All checks were successful
check / check (pull_request) Successful in 7m24s
nix / eval (push) Successful in 1m40s
check / check (push) Successful in 7m38s
54c232b73e
Move the fork's recipe from nixos-hosts modules/fleet/overlays/forks.nix into
nix/flake.nix, locked to the nixpkgs rev the fleet uses today (7dcdd87). The
fleet consumes it without `follows`, so a nixos-hosts nixpkgs bump no longer
changes this derivation. In nix/ because the root flake.nix is upstream's.

Add a `nix` workflow: evaluates the out path and builds the vendor derivation
on the untrusted runner, no compile, no secrets. Deliberately no job for the
trusted build, since a pushed branch could target any label a runner serves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4EKNjKMd6bwCpS7K4jU
jmz merged commit 54c232b73e into release/mirus 2026-11-07 10:51:45 +00: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
public/iamb!5
No description provided.