Repository navigation
headroom: default to headroom-lean; bump org-pkgs to headroom 0.43.1 - #31
Merged
Merged
Conversation
org-pkgs main (external-systems/pkgs#27) builds headroom 0.43.1 with uv2nix as headroom (extra all), headroom-lean and headroom-sandbox (upstream's deprecated alias of lean). homeSpec.programs.headroom.package defaulted to pkgs.headroom-sandbox, an attr pkgs never had before; it now defaults to headroom-lean, the same torch-free profile under its current upstream name. The option says which profile proxy.memory/learn need. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
andrewthomaslee
enabled auto-merge (squash)
November 9, 2026 13:23
This was referenced Nov 9, 2026
andrewthomaslee
added a commit
to external-systems/home
that referenced
this pull request
Nov 9, 2026
) ## What - `users/netsa/default.nix`, `users/matt/default.nix`: `homeSpec.programs.headroom.enable = true` (was `false`). - `flake.lock`, `devenv.lock`, `devenv.yaml`: `nix flake update modules org-pkgs` → modules `main` 5e8005f, org-pkgs `main` 1188419, then `sync-locks`. ## Why The headroom proxy was turned off because the 0.42 wheel package broke. It now comes from: - external-systems/pkgs#27: headroom 0.43.1 built with uv2nix (`headroom`, `headroom-lean`, `headroom-sandbox`). - external-systems/modules#31: `homeSpec.programs.headroom.package` defaults to `headroom-lean`, the torch-free profile (1.1 GiB closure). - external-systems/modules#32: claude's `ANTHROPIC_BASE_URL` is the proxy root. Before that fix, every claude request went to `/v1/v1/messages` and failed. With headroom enabled, `homeSpec.agents.mcp.headroom.{enable,routeProviders}` (both default on) give every agent the headroom MCP server and send its provider traffic through the `headroom-proxy` user service on 127.0.0.1:8787: - claude: `ANTHROPIC_BASE_URL`. - opencode: anthropic `baseURL`. - pi: models.json. - kimi: `KIMI_CODE_BASE_URL`. ### Behaviour - netsa (nixos, kamrui-h1, ghost, beelink) and matt (beelink) get a `headroom-proxy` systemd user service. - `claude` started from a login shell uses the proxy. - Claude Desktop: the headroom MCP server is synced into `claude_desktop_config.json`. The desktop chat talks to claude.ai, so it can't use the proxy. The desktop app's Code tab sets its own `ANTHROPIC_BASE_URL`, so it isn't routed yet. ## Checks - `fmt`: no changes. `check`: all checks passed. - `nix build` of `nixosConfigurations.{nixos,kamrui-h1,ghost,beelink}.config.system.build.toplevel`: OK. Each closure has `headroom-lean-0.43.1` and `headroom-proxy.service`. - kamrui-h1 netsa: `ANTHROPIC_BASE_URL=http://127.0.0.1:8787`, `KIMI_CODE_BASE_URL=http://127.0.0.1:8787/v1`. Proxy ExecStart: `headroom proxy --host 127.0.0.1 --port 8787 --mode cache --openai-api-url https://api.kimi.ai/coding/v1`. ## Merge order pkgs (#27, merged) → modules (#31, #32, merged) → **home (this PR)**. ## Deploy The owner approved deploying kamrui-h1 after merge (`clan machines update kamrui-h1`). Other machines are the owner's call: ``` clan machines update nixos ghost beelink ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
flake.lock,devenv.lock,devenv.yaml:nix flake update org-pkgsto pkgsmain1188419 (headroom: 0.43.1 built with uv2nix, one attr per upstream profile pkgs#27: headroom 0.43.1 built with uv2nix), thensync-locks. The lock also gains org-pkgs' uv2nix, pyproject-nix and build-system-pkgs nodes. They're lazy, and nothing here reads them.flake-parts/homeModules/headroom.nix:homeSpec.programs.headroom.packagenow defaults topkgs.headroom-lean, replacingpkgs.headroom-sandbox. The description says when to pickpkgs.headroom(the fullallprofile, whichproxy.memoryandproxy.learnneed: sentence-transformers, torch).tests/fixtures/overlay.nix,flake-parts/compositions.nix,README.md: the stub, comment and consumer docs follow the rename.Why
pkgs now ships headroom per upstream dependency profile:
headroom(all),headroom-lean(torch-free) andheadroom-sandbox, upstream's deprecated alias oflean. The old defaultpkgs.headroom-sandboxnever existed in pkgs before #27.headroom-leanis the same profile under the name upstream keeps.Every flag the proxy service passes (
--host --port --mode --anthropic-api-url --openai-api-url --memory --learn) still exists in 0.43.1 (headroom proxy --help).headroom mcp serveis unchanged. No option changes.Checks
fmt: no changes.check(nix flake check): all checks passed, with eval-all-enabled coveringhomeSpec.programs.headroom.enable.nix flake check --override-input org-pkgs github:external-systems/pkgs/b3af27b(local only, not committed).Merge order
pkgs (external-systems/pkgs#27, merged) → modules (this PR) → home (bumps
modules org-pkgsand re-enables the headroom proxy).🤖 Generated with Claude Code