Skip to content

chore(flake): cheap hardening/hygiene batch (darwin guard, single eval, uv URL, renovate, nixfmt glob) - #783

Merged
c-vigo merged 1 commit into
feature/625-nix-claude-migrationfrom
chore/774-flake-cheap-batch
Jun 30, 2026
Merged

c-vigo merged 1 commit into
feature/625-nix-claude-migrationfrom
chore/774-flake-cheap-batch

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

PR #670 roadmap thread A — the batched "cheap fixes" the reviewer flagged, all in flake.nix plus the Renovate config. Lands on the migration branch.

# Item Where Change
1 darwin guard flake.nix (per-system return) packages (image + devcontainerImageEnv/vulnix scan targets) now wrapped in lib.optionalAttrs (lib.hasSuffix "-linux" system) so nix flake check --all-systems no longer aborts on the darwin dockerTools eval; dev-shell stays cross-platform
2 hoist unstable import flake.nix overlay import nixpkgs-unstable factored into importUnstable, evaluated once per system and threaded into mkFastMoverOverlay instead of re-imported inside the overlay fixpoint
3 uv URL drift flake.nix mkProjectShell uvPythonDownloadsJsonUrl now derived from pkgs.uv.version (was a literal 0.11.23 while the overlaid uv floats — actually 0.11.19, i.e. already drifted)
4 Renovate wheel rule renovate.json Added a customManagers regex tracking the pip-licenses wheel version pinned in flake.nix (datasource pypi), enabled custom.regex, plus a matching packageRule
5 nixfmt glob flake.nix checks.format flake check now runs nixfmt --check over every *.nix (source filtered to .nix), not just flake.nix. The pre-commit hook already globbed \.nix$, so it was unchanged

Verification

  • nix flake check (x86_64-linux): all checks passed — including the new checks.format building nixfmt-check over all 3 tracked *.nix.
  • nix flake check --all-systems: all checks passed — checks.{aarch64,x86_64}-darwin now evaluate cleanly; packages.*-darwin is absent (guard works), packages.x86_64-linux still exposes devcontainerImage/devcontainerImageEnv/vulnix.
  • just test-renovate (renovate-config-validator --strict): Config validated successfully against 3 file(s).
  • nixfmt --check over all *.nix: clean (no other files needed reformatting).
  • pre-commit: nixfmt, sync-manifest (CHANGELOG mirror), check-json all Passed; full commit ran the standard hook suite (no --no-verify).

Derived uv URL confirmed: https://raw.githubusercontent.com/astral-sh/uv/0.11.19/crates/uv-python/download-metadata.json (matches pkgs.uv.version).

Closes #774

- darwin-guard the Linux-only `packages` so `nix flake check
  --all-systems` no longer aborts during the darwin dockerTools eval
- hoist the `nixpkgs-unstable` import out of the overlay fixpoint and
  thread it in once per system
- derive `UV_PYTHON_DOWNLOADS_JSON_URL` from `pkgs.uv.version` so it
  cannot drift from the floating uv
- add a Renovate custom regex manager tracking the pip-licenses wheel
  version pinned in flake.nix
- run `nixfmt --check` over every *.nix in the `checks.format` gate

Refs: #774
@c-vigo
c-vigo merged commit 3401dcd into feature/625-nix-claude-migration Jun 30, 2026
11 checks passed
@c-vigo
c-vigo deleted the chore/774-flake-cheap-batch branch June 30, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant