Skip to content

headroom: default to headroom-lean; bump org-pkgs to headroom 0.43.1 - #31

Merged
andrewthomaslee merged 1 commit into
mainfrom
headroom-0.43.1
Nov 9, 2026
Merged

andrewthomaslee merged 1 commit into
mainfrom
headroom-0.43.1

Conversation

@andrewthomaslee

Copy link
Copy Markdown
Member

What

  • flake.lock, devenv.lock, devenv.yaml: nix flake update org-pkgs to pkgs main 1188419 (headroom: 0.43.1 built with uv2nix, one attr per upstream profile pkgs#27: headroom 0.43.1 built with uv2nix), then sync-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.package now defaults to pkgs.headroom-lean, replacing pkgs.headroom-sandbox. The description says when to pick pkgs.headroom (the full all profile, which proxy.memory and proxy.learn need: 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) and headroom-sandbox, upstream's deprecated alias of lean. The old default pkgs.headroom-sandbox never existed in pkgs before #27. headroom-lean is 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 serve is unchanged. No option changes.

Checks

Merge order

pkgs (external-systems/pkgs#27, merged) → modules (this PR) → home (bumps modules org-pkgs and re-enables the headroom proxy).

🤖 Generated with Claude Code

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
andrewthomaslee enabled auto-merge (squash) November 9, 2026 13:23
@andrewthomaslee
andrewthomaslee merged commit 3c04d1b into main Nov 9, 2026
3 checks passed
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>
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