Skip to content

fix(nix): pin nix-homebrew to Homebrew 6 until the nix-darwin 26.05 move - #217

Merged
furedea merged 1 commit into
mainfrom
fix/pin-nix-homebrew
Oct 18, 2026
Merged

furedea merged 1 commit into
mainfrom
fix/pin-nix-homebrew

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

darwin-rebuild switch stopped at the Homebrew bundle step after the lock file maintenance in #215:

Error: Calling the `--cleanup` switch is disabled! There is no replacement.

#215 moved nix-homebrew to c11cccfd, which ships Homebrew 7.0.4. Homebrew 7 removed brew bundle --cleanup, but nix-darwin-25.11 still passes it for homebrew.onActivation.cleanup = "uninstall". nix-darwin master and nix-darwin-26.05 already call brew bundle cleanup --force-cleanup instead.

  • flake.nix: nix-homebrew is pinned to 09a921d0 (Homebrew 6.0.22, what the machine ran before chore(deps): lock file maintenance #215), with a comment explaining why, so lock file maintenance leaves it alone.
  • Unpin as part of the move to nixpkgs / nix-darwin / home-manager 26.05.

Verification

  • nix build .#darwinConfigurations.mbp.system: builds, with brew-src at 6.0.22.
  • darwin-rebuild switch itself needs sudo, so it is left to the reviewer after merge.

🤖 Generated with Claude Code

Lock file maintenance (#215) moved nix-homebrew to Homebrew 7.0.4, which
removed `brew bundle --cleanup`. nix-darwin-25.11 still passes that flag
for onActivation.cleanup = "uninstall", so darwin-rebuild switch stopped
at the Homebrew bundle step. Pin nix-homebrew to the revision that ships
Homebrew 6.0.22; nix-darwin-26.05 uses `brew bundle cleanup` instead, so
the pin goes away with that migration.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea
furedea merged commit 549eb97 into main Oct 18, 2026
11 checks passed
@furedea
furedea deleted the fix/pin-nix-homebrew branch October 18, 2026 11:09
furedea added a commit that referenced this pull request Oct 18, 2026
## Summary

Moves `nixpkgs`, `nix-darwin`, and `home-manager` from 25.11 to 26.05
and drops the `nix-homebrew` pin added in #217. nix-darwin 26.05 runs
`brew bundle cleanup --force-cleanup` instead of the `brew bundle
--cleanup` flag that Homebrew 7 removed.

### 26.05 move (`4cf2f9a`)

- `flake.nix`: inputs now point at `nixpkgs-26.05-darwin`,
`nix-darwin-26.05`, and `release-26.05`. The `nix-homebrew` pin and its
3-line comment are removed.
- `flake.lock`: only `nixpkgs`, `nix-darwin`, `home-manager`, and
`nix-homebrew` were updated. `nixpkgs-unstable` and `hermes-agent` are
unchanged.
- `nix/home/default.nix`: `nodePackages."@antfu/ni"` → `ni`
(`nodePackages` was removed in 26.05), and `nixfmt-rfc-style` →
`nixfmt`. `programs.neovim.withRuby` and `withPython3` are now set to
`false` explicitly, which adopts the new defaults and silences the
warning.
- `.github/workflows/ci.yml`: `nix run nixpkgs#nixfmt-rfc-style` →
`nixpkgs#nixfmt`.
- `README.md`: the first-install `darwin-rebuild` command now uses
`nix-darwin-26.05`.
- `home.stateVersion` and `system.stateVersion` are unchanged.

### moshi-hook 0.3.21 → 0.4.31 (`8acb48b`)

Building with 26.05 changes stdenv, so the `moshi-hook` derivation has
to fetch its source again. The CDN no longer serves v0.3.21 or any older
release
(`https://cdn.getmoshi.app/hook/v0.3.21/moshi-hook_Darwin_arm64.tar.gz`
returns 404). The `main` build only works on machines where the old
output is still in the store, so a clean machine or CI would fail too.

- Updated to v0.4.31, the version reported by `hook/latest/version.txt`.
The URL scheme is unchanged, and the sha256 matches the upstream
`checksums.txt`.
- The configuration uses `install --target claude,codex`, `serve`, and
`status --json` (`.paired`, `.secretStore`). All three still work the
same in 0.4.31.
- `nix/checks.nix` and `tests/agents/agent_hook.bats` pin the version
string, so they now expect 0.4.31.

### nvim `sideloadInitLua` (`9a1cef6`)

Home Manager 26.05 writes the generated provider settings
(`vim.g.loaded_*_provider = 0`) to `~/.config/nvim/init.lua`. That
conflicts with the out-of-store `~/.config/nvim` link to the dotfiles
tree, and the build failed with `Error installing file
'.config/nvim/init.lua' outside $HOME`. Setting
`programs.neovim.sideloadInitLua = true` loads that content through the
nvim wrapper instead, and the dotfiles tree keeps ownership of
`init.lua`.

## Verification

| Command | Result |
| --- | --- |
| `nix eval` drvPath of `darwinConfigurations.{mbp,mba}.system` and
`homeConfigurations.kaito.activationPackage` | Pass, with no evaluation
warnings or errors |
| `nix build .#darwinConfigurations.mbp.system
.#homeConfigurations.kaito.activationPackage` | Pass |
| `nix build
.#checks.aarch64-darwin.{home-configuration,host-configuration}` | Pass
|
| `bats tests/agents/agent_hook.bats
tests/agents/codex/codex_notification.bats
tests/herdr/herdr_command.bats tests/hermes/hermes_secretary.bats
tests/nix/configuration.bats
tests/terminal-browser/terminal_browser.bats` | Pass (13/13) |
| `uv run --frozen pytest tests` | Pass (1564 passed) |
| lefthook pre-commit / commit-msg | Pass |

After merge, `darwin-rebuild switch` and `home-manager switch` still
need to be run on the host.

Closes #218

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
furedea added a commit that referenced this pull request Nov 16, 2026
agent-config の PostToolUse フックが ADR 編集後に実行する `adr-check` を PATH
に置く.`jev-lint` と同じ方法で `home.packages` に追加し,`agent-config` 入力を #225
を含むリビジョンに更新する.

Refs furedea/agent-config#169

## 変更内容

- `nix/home/default.nix`: `adrCheckPackage =
agent-config.packages.${system}.adr-check;` を `jevLintPackage`
の隣に追加し,`home.packages` に加えた(furedea/agent-config#225).
- `flake.lock`: `agent-config` を `2ab23eb` → `138c542` に更新した(`nix flake
update agent-config`).

## agent-config の更新内容(2ab23eb → 138c542,23 コミット)

- lint: go-style / rust-style / python-style / TypeScript / bash-style /
github-actions-style / agents/AGENTS.md のルールを ast-grep・jev-lint・model
rules へ移行(#190, #191, #192, #193, #194, #195),Go の `util`・`common`
パッケージ検出(#202),ブロッキング ast-grep ルールの欠落修正(#216)
- hooks: 静的ルールエラーでの編集ブロックと ast-grep-ignore の保護(#203),ask
プレフィックスの限定(#199),リポジトリフック回避オプションの拒否(#212),コードセルの判定修正(#224)
- skills: issue / git / setup ワークフローを `development-cycle`
に統合(#211),agent 実行の verify ステップ削除(#213),範囲外指摘への回答と all-green 待機(#223)
- docs/ADR: MADR の採用(#215),スキル責務の配置(#208),コマンド判定の方針(#198),ast-grep
のブロック方針(#214),AGENTS.md の整理(#205)
- build/ci: マイナーバージョン上げの設定(#217),jev-lint モデルルールテストを CI で実行(#218)
- feat: `adr-check` コマンドの追加(#225)

## 検証

- `nix build '.#homeConfigurations."kaito@mbp".activationPackage'`:
成功.生成物の `home-path/bin` に `adr-check` が含まれることを確認した.
- `darwin-rebuild switch` は実行していない.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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