Skip to content

Nix dev shell and the unified preview (wt, review.t7d.dev) - #34

Merged
Tim-Conrad merged 1 commit into
masterfrom
nix-dev
Nov 14, 2026
Merged

Tim-Conrad merged 1 commit into
masterfrom
nix-dev

Conversation

@Tim-Conrad

Copy link
Copy Markdown
Owner

Why

All repos get the same dev experience in the dev VM: a Nix dev shell loaded by direnv, and previews through wt. Every worktree has its own address, so branches can be compared side by side.

What changes

  • flake.nix + .envrc: Python with Playwright and markdown, Node 22, gh, uv.
  • compose.preview.yml: the review site of the current worktree plus its papercuts relay, started with wt up:
    • https://<branch>--t7d.review.t7d.dev: the review site
    • https://pc-<branch>--t7d.review.t7d.dev: the papercuts relay
    • https://t7d.review.t7d.dev: the current worktree (wt switch)
  • Approve works as before. The request goes to .review/approve/ of the main checkout, and approve-host.sh publishes it. It is installed in the dev VM with approve-install.sh.
  • README: the new workflow. docker-compose.dev.yml stays until a follow-up removes it.

Checks

  • Dev shell: python3 -m unittest discover -s scripts/review -p 'test_*.py' passes (72 tests), and node --test scripts/review/test_*.mjs passes (12 tests).
  • wt up in the worktree of this branch: the review site answers 200, and the relay answers /healthz with 200 through the dev VM gateway.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KFxuEvbkaAsJXeJAcQhGr6

- flake.nix: Python with Playwright and markdown, Node 22, gh, uv;
  .envrc loads it with direnv.
- compose.preview.yml: the review site of the current worktree and its
  papercuts relay, for `wt up`. Approve writes to .review/approve/ of the
  main checkout, as before.
- README: development in the dev VM with direnv and wt.

Tests in the dev shell: 72 Python and 12 Node tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KFxuEvbkaAsJXeJAcQhGr6
@Tim-Conrad
Tim-Conrad merged commit 084439e into master Nov 14, 2026
1 check passed
@Tim-Conrad
Tim-Conrad deleted the nix-dev branch November 14, 2026 01:40
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