Repository navigation
build(nix): move to nixpkgs, nix-darwin and home-manager 26.05 - #219
Merged
Merged
Conversation
Unpin nix-homebrew now that nix-darwin 26.05 no longer passes the `brew bundle --cleanup` flag Homebrew 7 removed. Replace the removed nodePackages."@antfu/ni" with ni, rename nixfmt-rfc-style to nixfmt, and adopt the new neovim provider defaults explicitly. Refs #218 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The CDN no longer serves v0.3.21 (or any older release), so rebuilding the fixed-output source fails with 404. 0.4.31 keeps the `install --target`, `serve`, and `status --json` interface the configuration relies on. Refs #218 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Home Manager 26.05 writes provider settings to ~/.config/nvim/init.lua, which collides with the out-of-store ~/.config/nvim link to the dotfiles tree. Load that content through the wrapper instead. Refs #218 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 18, 2026
Closed
furedea
added a commit
that referenced
this pull request
Oct 18, 2026
## Summary `cdn.getmoshi.app` deletes old moshi-hook releases, so a stale pin breaks with 404 whenever a nixpkgs change forces a rebuild (as in #219). This adds a daily workflow that keeps `nix/packages/moshi_hook.nix` on the latest release. Closes #220 ## Commits - `feat(moshi)`: `scripts/moshi/update_moshi_hook.sh` reads `latest/version.txt` (must be `vX.Y.Z`), takes the `moshi-hook_Darwin_arm64.tar.gz` hash from the release's `checksums.txt`, converts it to SRI, and rewrites only `version` and `hash`. Exits 3 when the pin is current. The CDN base URL is replaceable via `MOSHI_CDN_URL`; Bats tests serve fixtures through `file://`. - `test(moshi)`: `moshi-pinned` / `moshi-managed-runtime` in `nix/checks.nix` and the two greps in `tests/agents/agent_hook.bats` read the version from `moshi_hook.nix` instead of hard-coding 0.4.31, still asserting `/nix/store/...-moshi-hook-<version>/bin/moshi-hook`. - `ci(moshi)`: `.github/workflows/update_moshi_hook.yml` (daily `schedule` + `workflow_dispatch`) pushes `chore/update-moshi-hook-<version>` and opens a PR unless one is already open, then runs `gh workflow run ci.yml` because PRs created with `GITHUB_TOKEN` do not trigger `pull_request` runs. `ci.yml` gains `workflow_dispatch` and runs the new Bats tests. ## Verification - `bats tests/moshi/update_moshi_hook.bats tests/moshi/lifecycle.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`: 18/18 pass - `uv run --frozen pytest tests`: 1564 passed - `nix build .#checks.aarch64-darwin.home-configuration .#checks.aarch64-darwin.host-configuration`: pass - Real CDN: 0.4.31 yields "no update" (exit 3); a copy pinned to 0.3.21 is rewritten to exactly the current `moshi_hook.nix` - `actionlint`: pass; `zizmor` 1.31.0: no findings ## Required repository setting Settings → Actions → General → **Allow GitHub Actions to create and approve pull requests** must be enabled, or the workflow cannot open PRs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
7 of 9 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
Moves
nixpkgs,nix-darwin, andhome-managerfrom 25.11 to 26.05 and drops thenix-homebrewpin added in #217. nix-darwin 26.05 runsbrew bundle cleanup --force-cleanupinstead of thebrew bundle --cleanupflag that Homebrew 7 removed.26.05 move (
4cf2f9a)flake.nix: inputs now point atnixpkgs-26.05-darwin,nix-darwin-26.05, andrelease-26.05. Thenix-homebrewpin and its 3-line comment are removed.flake.lock: onlynixpkgs,nix-darwin,home-manager, andnix-homebrewwere updated.nixpkgs-unstableandhermes-agentare unchanged.nix/home/default.nix:nodePackages."@antfu/ni"→ni(nodePackageswas removed in 26.05), andnixfmt-rfc-style→nixfmt.programs.neovim.withRubyandwithPython3are now set tofalseexplicitly, 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-installdarwin-rebuildcommand now usesnix-darwin-26.05.home.stateVersionandsystem.stateVersionare unchanged.moshi-hook 0.3.21 → 0.4.31 (
8acb48b)Building with 26.05 changes stdenv, so the
moshi-hookderivation 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.gzreturns 404). Themainbuild only works on machines where the old output is still in the store, so a clean machine or CI would fail too.hook/latest/version.txt. The URL scheme is unchanged, and the sha256 matches the upstreamchecksums.txt.install --target claude,codex,serve, andstatus --json(.paired,.secretStore). All three still work the same in 0.4.31.nix/checks.nixandtests/agents/agent_hook.batspin 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/nvimlink to the dotfiles tree, and the build failed withError installing file '.config/nvim/init.lua' outside $HOME. Settingprograms.neovim.sideloadInitLua = trueloads that content through the nvim wrapper instead, and the dotfiles tree keeps ownership ofinit.lua.Verification
nix evaldrvPath ofdarwinConfigurations.{mbp,mba}.systemandhomeConfigurations.kaito.activationPackagenix build .#darwinConfigurations.mbp.system .#homeConfigurations.kaito.activationPackagenix build .#checks.aarch64-darwin.{home-configuration,host-configuration}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.batsuv run --frozen pytest testsAfter merge,
darwin-rebuild switchandhome-manager switchstill need to be run on the host.Closes #218
🤖 Generated with Claude Code