You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Track B: options evaluated and not adopted (binary caches, flake-parts, treefmt, nix-unit)
#74
Migrated from #56, which is now closed. This is a decision record, not open work — filed here per audit guidance so future revisits start from what was already checked instead of re-deriving it.
Record of options evaluated in a Track B research pass and deliberately not adopted. Filed so the reasoning is recoverable rather than re-derived, and so a future revisit starts from what was already checked. Not scheduled work.
Binary caches — ruled out on cost
The hard constraint was that this config must cost nothing to run.
Option
Verdict
FlakeHub Cache
Available only on paid plans. No free tier. Out.
Attic
Self-hosted; the available homelab hardware can't run it. Out.
Cachix
Paid beyond a limited open-source tier. Deprioritised.
Garnix
Free tier is ~1,500 CI min/month plus a shared public cache. A single main run already spends ~100+ job-minutes across its matrix, so the free tier is marginal here — it would supplement, not replace.
Outcome: keep cache-nix-action. It is free, already wired, and none of the free alternatives beat it. The relevant enabling fact is that GitHub Actions is free and unlimited for public repositories, so CI time costs nothing on this repo — the only real cost is third-party SaaS, which is what the table above rules out.
If this is ever revisited, the trigger would be the 10 GB GHA cache quota becoming binding — check.yml already works around it by deliberately sharing one cache key across all 16 Linux profiles to avoid fragmentation.
flake-parts — considered, recommended against
Would replace the hand-rolled mkProfile / mkHomeConfig / mkDarwinConfig compositor and the repeated genAttrs plumbing with the flake module system.
Reasons not to, in order of weight:
The duplication it would remove is already gone.chore: single-source the lint file set, drop duplicate lint runs #38 extracted allSystems and linuxSystems; genAttrs now appears three times in a 561-line flake.nix of which 195 lines are comments. The motivating problem was solved more cheaply.
It is a large rewrite of a working, well-documented compositor. The feature/tier data model, the release-pairing guard, and the per-arch darwin split are all load-bearing and heavily commented; re-expressing them as flake modules risks losing that context for no functional gain.
The ecosystem does not universally recommend it. Determinate Systems explicitly prefer plain Nix, describing flake-parts as making flakes "more verbose and convoluted"; the common community advice is to adopt it only if you plan to publish reusable flake modules, which this repo does not.
Revisit if this repo ever starts exporting modules for others to import, which is the case flake-parts genuinely serves.
Multi-language formatting (yaml, toml, markdown — none of which anything formats today). This is the part with remaining value.
Deferred rather than dropped: the formatter question is being settled first by #54 (migrate to nixfmt-rfc-style). Once that lands, treefmt is worth reconsidering purely on the multi-language merits, and would be a smaller change at that point.
Note the same trade-off as #38: collapsing four named lint jobs into one check loses the ability to see which linter failed from the check name alone.
nix-unit — ruled out on platform support
Considered alongside nmt for testing the pure-Nix logic (mkProfile, resolveFeature, docs-gen, the profile-list validators).
It has no x86_64-darwin package — checked directly: packages.x86_64-darwin is empty, while x86_64-linux, aarch64-linux and aarch64-darwin all provide it. That is the same platform drop that forced this repo's darwin pin in the first place, and it means nix-unit could not run locally on this repo's primary machine.
nmt was adopted instead (#51, #52, #53); it scrubs packages rather than building them, so it runs anywhere, darwin included. nix-unit remains a reasonable option for pure function tests specifically, if it ever regains x86_64-darwin or the machine changes — the two tools solve different problems and are not mutually exclusive.
runNixOSTest VM tests — not filed separately
Genuinely the only way to test activation scripts actually running, but heavy, and Linux-only. Already captured as one of the two options under #43 (activation scripts have no automated coverage), so it is tracked there rather than duplicated here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Record of options evaluated in a Track B research pass and deliberately not adopted. Filed so the reasoning is recoverable rather than re-derived, and so a future revisit starts from what was already checked. Not scheduled work.
Binary caches — ruled out on cost
The hard constraint was that this config must cost nothing to run.
mainrun already spends ~100+ job-minutes across its matrix, so the free tier is marginal here — it would supplement, not replace.Outcome: keep
cache-nix-action. It is free, already wired, and none of the free alternatives beat it. The relevant enabling fact is that GitHub Actions is free and unlimited for public repositories, so CI time costs nothing on this repo — the only real cost is third-party SaaS, which is what the table above rules out.If this is ever revisited, the trigger would be the 10 GB GHA cache quota becoming binding —
check.ymlalready works around it by deliberately sharing one cache key across all 16 Linux profiles to avoid fragmentation.flake-parts — considered, recommended against
Would replace the hand-rolled
mkProfile/mkHomeConfig/mkDarwinConfigcompositor and the repeatedgenAttrsplumbing with the flake module system.Reasons not to, in order of weight:
allSystemsandlinuxSystems;genAttrsnow appears three times in a 561-lineflake.nixof which 195 lines are comments. The motivating problem was solved more cheaply.Revisit if this repo ever starts exporting modules for others to import, which is the case flake-parts genuinely serves.
treefmt-nix — deferred, not rejected
Two independent things bundled in one tool:
formattingcheck instead of fourlint-*jobs). Most of its value here was deduplicating the lint file set, which chore: single-source the lint file set, drop duplicate lint runs #38 already did directly.Deferred rather than dropped: the formatter question is being settled first by #54 (migrate to
nixfmt-rfc-style). Once that lands, treefmt is worth reconsidering purely on the multi-language merits, and would be a smaller change at that point.Note the same trade-off as #38: collapsing four named lint jobs into one check loses the ability to see which linter failed from the check name alone.
nix-unit — ruled out on platform support
Considered alongside nmt for testing the pure-Nix logic (
mkProfile,resolveFeature,docs-gen, the profile-list validators).It has no
x86_64-darwinpackage — checked directly:packages.x86_64-darwinis empty, whilex86_64-linux,aarch64-linuxandaarch64-darwinall provide it. That is the same platform drop that forced this repo's darwin pin in the first place, and it means nix-unit could not run locally on this repo's primary machine.nmt was adopted instead (#51, #52, #53); it scrubs packages rather than building them, so it runs anywhere, darwin included. nix-unit remains a reasonable option for pure function tests specifically, if it ever regains x86_64-darwin or the machine changes — the two tools solve different problems and are not mutually exclusive.
runNixOSTest VM tests — not filed separately
Genuinely the only way to test activation scripts actually running, but heavy, and Linux-only. Already captured as one of the two options under #43 (activation scripts have no automated coverage), so it is tracked there rather than duplicated here.
All reactions