Repository navigation
fix(homebrew): manage trusted formulae - #11
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Pins the Homebrew brew source used by nix-homebrew and adds a generated, formula-scoped Homebrew trust store so Homebrew can load winebarrel/kasa/kasa during activation while keeping trust narrowly scoped.
Changes:
- Pins
brew-srcto a specific Homebrew/brew commit and wires it tonix-homebrewviafollows. - Generates
trust.jsoncontainingtrustedformulae = ["winebarrel/kasa/kasa"]and installs it to both~/.homebrewand~/.config/homebrewbefore running Homebrew Bundle. - Reuses a single
kasaFormulaconstant for both the trust store and thehomebrew.brewsentry.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| nix/darwin/default.nix | Generates and installs a scoped Homebrew trust store pre-activation; reuses a shared formula constant in Homebrew Bundle config. |
| flake.nix | Adds a pinned brew-src input and makes nix-homebrew follow it. |
| flake.lock | Updates lock entries to reflect the pinned brew-src revision and updated nix-homebrew input wiring. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
furedea
added a commit
that referenced
this pull request
Sep 15, 2026
## 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 #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: ```json {"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](https://claude.com/claude-code)
furedea
added a commit
that referenced
this pull request
Oct 24, 2026
## 概要 agent-config を c6aacdf に更新し,`DEVIN_PERMISSION_MODE` を `nix/darwin/default.nix` のリテラルではなく `agent-config.lib.agentEnvironment`(agent-config PR #15)から読むようにします.サーバー側の bootstrap とホストが同じ値を共有します. Refs furedea/agent-config#8(計画: furedea/agent-config#8 (comment) の devin-env 行) ## 変更 - `flake.lock`: `agent-config` を dd59634 から c6aacdf へ更新(agent-config PR #6, #11, #12, #13, #15, #16, #17 を取り込む) - `flake.nix`: darwin の `specialArgs` に `agent-config` を追加 - `nix/darwin/default.nix`: `inherit (agent-config.lib.agentEnvironment) DEVIN_PERMISSION_MODE;` - `nix/checks.nix` は変更なし(`devin-smart-permission-mode` は通る) ## 検証 - `nix flake check`,`nix build .#checks.aarch64-darwin.{host,home}-configuration`: 成功 - `darwin-rebuild build --flake .#mbp`: 成功(switch はしていない) - `deadnix --fail`,`nixfmt --check`,`pytest -m 'not integration'`(121 件): 成功 ## 描画された agent ファイルの差分(現行世代 → 新世代) - `.claude/hooks/defaults/`(`dprint.json`,`prettier.json`)が新規追加 - hooks/lib に `javascript_runner.py`,`shell_input.py`,`shell_paths.py`,`shell_words.py` が追加.`guard_file.py`,`check_selection.py`,`formatter_policy.py`,`git_safety.py`,`lint_engine.py`,`provider_adapter.py`,`shell_syntax.py`,`rules/protected_paths.json` が変更 - Claude の `settings.json` と Codex の `config.toml`: 追加された hook ファイルの read/Edit 保護と,sandbox の `~/.cache/dprint` 書き込み許可が増えただけ(削除なし) - スキル本文: `git-workflow/references/branches.md`,`herdr-delegation/SKILL.md`(Claude・Codex 両方) 差分はすべて取り込んだ agent-config の変更に由来します. ## レビュー 変更が 3 ファイル 8 行で,レビューはこの PR 上で行います. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
5 tasks
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
Verification