Repository navigation
chore(flake): cheap hardening/hygiene batch (darwin guard, single eval, uv URL, renovate, nixfmt glob) - #783
Merged
c-vigo merged 1 commit intoJun 30, 2026
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #670 roadmap thread A — the batched "cheap fixes" the reviewer flagged, all in
flake.nixplus the Renovate config. Lands on the migration branch.flake.nix(per-system return)packages(image +devcontainerImageEnv/vulnixscan targets) now wrapped inlib.optionalAttrs (lib.hasSuffix "-linux" system)sonix flake check --all-systemsno longer aborts on the darwindockerToolseval; dev-shell stays cross-platformflake.nixoverlayimport nixpkgs-unstablefactored intoimportUnstable, evaluated once per system and threaded intomkFastMoverOverlayinstead of re-imported inside the overlay fixpointflake.nixmkProjectShelluvPythonDownloadsJsonUrlnow derived frompkgs.uv.version(was a literal0.11.23while the overlaid uv floats — actually0.11.19, i.e. already drifted)renovate.jsoncustomManagersregex tracking thepip-licenseswheel version pinned inflake.nix(datasource pypi), enabledcustom.regex, plus a matchingpackageRuleflake.nixchecks.formatnixfmt --checkover every*.nix(source filtered to.nix), not justflake.nix. The pre-commit hook already globbed\.nix$, so it was unchangedVerification
nix flake check(x86_64-linux): all checks passed — including the newchecks.formatbuildingnixfmt-checkover all 3 tracked*.nix.nix flake check --all-systems: all checks passed —checks.{aarch64,x86_64}-darwinnow evaluate cleanly;packages.*-darwinis absent (guard works),packages.x86_64-linuxstill exposesdevcontainerImage/devcontainerImageEnv/vulnix.just test-renovate(renovate-config-validator --strict): Config validated successfully against 3 file(s).nixfmt --checkover all*.nix: clean (no other files needed reformatting).nixfmt,sync-manifest(CHANGELOG mirror),check-jsonall 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(matchespkgs.uv.version).Closes #774