Skip to content

fix(nix): trust the oMLX formula declaratively - #108

Merged
furedea merged 1 commit into
mainfrom
fix/trust-omlx-formula
Sep 15, 2026
Merged

furedea merged 1 commit into
mainfrom
fix/trust-omlx-formula

Conversation

@furedea

@furedea furedea commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Summary

darwin-rebuild switch aborts right after #107 with:

Tapping jundot/omlx
Error: Refusing to load formula jundot/omlx/omlx from untrusted tap jundot/omlx.

Homebrew refuses to load formulae from third-party taps until they are trusted, and nix-darwin
25.11 exposes no option for brew trust. Trusting it by hand leaves the trust store as manual
state that a fresh machine would not reproduce.

  • restore the generated trust store from fix(homebrew): manage trusted formulae #11, which was dropped along with the moshi formula
  • scope the trust to the single formula rather than the whole tap, so only that formula is
    authorized to run Ruby (the principle ADR-0005 recorded)
  • declare both spellings, because Homebrew records the clone URL form for taps with a custom
    clone target
  • install the trust store into both ~/.homebrew and ~/.config/homebrew before Homebrew
    Bundle runs, since Bundle runs without XDG_CONFIG_HOME while interactive shells set it
  • replace the duplicated tap and formula literals with let bindings

Generated trust store:

{"trustedformulae":["jundot/omlx/omlx","https://github.com/jundot/omlx/omlx"]}

Verification

  • nixfmt --check, statix check, deadnix --fail pass on nix/darwin/default.nix
  • nix build --no-link .#darwinConfigurations.mbp.system succeeds
  • confirmed the generated homebrew-trust.json content and its install invocation in the
    rendered preActivation script

Notes

Which spelling Homebrew matches against was not verified empirically, so both are declared.

This trust store replaces the file currently on disk, dropping four stale entries
(antoniorodr/memo/memo, rjyo/moshi/moshi-hook, steipete/tap/remindctl,
winebarrel/kasa/kasa) and the tap-wide trust entry. None of those formulae remain in
homebrew.brews, so cleanup = "uninstall" has already removed them.

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings September 15, 2026 16:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@furedea
furedea merged commit 72e1e5f into main Sep 15, 2026
11 checks passed
@furedea
furedea deleted the fix/trust-omlx-formula branch September 15, 2026 17:00
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.

2 participants