Skip to content

docs(home): CLAUDE.md template hierarchy - #840

Merged
c-vigo merged 1 commit into
feature/814-home-environment-modulesfrom
docs/828-claude-md-templates
Jul 4, 2026
Merged

c-vigo merged 1 commit into
feature/814-home-environment-modulesfrom
docs/828-claude-md-templates

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Lands C4 for epic #814.

Refs: #828

User-global, workspace-root, and workspace-layer templates exploiting
the root-to-cwd CLAUDE.md cascade, with the directory-layout convention
documented as the assumption that makes the workspace layer work.
Org-level URLs only (rename-agnostic); the optional management option
lands with vigos.claude (#823).

Refs: #828
@c-vigo
c-vigo merged commit ef24573 into feature/814-home-environment-modules Jul 4, 2026
2 checks passed
@c-vigo
c-vigo deleted the docs/828-claude-md-templates branch July 4, 2026 16:30
c-vigo added a commit that referenced this pull request Jul 4, 2026
## Summary

Implements the MVP slice of epic #814 — **the terminal home environment
as devkit home-manager modules**, a second product of this flake per the
accepted `docs/rfcs/ADR-home-environment-modules.md` (in this diff). One
self-contained master branch; each sub-issue landed via its own worktree
branch + PR into it; this draft PR is the CI vehicle and the single
human review point.

What this adds, in one paragraph: parameterized
`vigos.{packages,shell,multiplexer,cli,direnv,git}` home-manager modules
(path-exported, umbrella `default`, `homeModules` alias,
`programs.vigos-devtools` rename shim), the `home-manager` flake input
(the module product's only new input), a `ci-{minimal,full}`
homeConfigurations matrix across four systems built as Tier-0 `hm-*`
checks, a darwin/arm **Home Matrix** workflow pushing closures to
Cachix, the module release/versioning policy, a scheduled
nixpkgs-unstable bump workflow, `templates.personal` +
`homeConfigurations.demo`, and the `docs/home/` consumer doc set
(bootstrap, cookbook, rollback, credentials, CLAUDE.md templates). The
devcontainer image is deliberately untouched (ADR Axis 4); a tier-"none"
user is unaffected (optionality invariant).

## Ledger

| Sub-issue | Work | PR | Status |
|---|---|---|---|
| #815 E1 | Accept ADR | #829 | ✅ |
| #816 E2 | Release/versioning policy + scaffold float doc | #831 | ✅ |
| #817 E3 | Scheduled nixpkgs-unstable bump workflow | #832 + hotfix
#834 | ✅ |
| #818 A1 | vigos.* namespace + module skeleton + rename shim | #835 | ✅
|
| #819 A2 | home-manager input + ci matrix (Tier-0 hm legs) | #835,
changelog #841 | ✅ |
| #820 A3 | Home Matrix workflow (darwin/arm + Cachix) | #836 | ✅ green
on all runs |
| #821 A4 | Wave-1 modules (shell, multiplexer, cli, direnv, git) | #837
| ✅ TDD |
| #822 B1 | Dogfood evidence |
c-vigo/vigo-nixos`@feature/devkit-wave1-dogfood` | ✅ evidence +
allowlist posted |
| #825 C1 / #826 C2 | Bootstrap + cookbook/rollback/credentials docs |
#839 | ✅ |
| #827 C3 | templates.personal + demo | #838 | ✅ |
| #828 C4 | CLAUDE.md templates | #840 | ✅ |

Out of scope (follow-up): #823 B2, #824 B3 (waves 2/3).

## Evidence

- Final head CI **fully green**: image build/tests/integration, Project
Checks (Tier-0 incl. new `hm-minimal`/`hm-full` legs + 12-test schema
suite + downstream stub), dependency review, security scan.
- **Home Matrix green on every run** — aarch64-darwin + aarch64-linux
module closures on the `vig-os` Cachix (darwin cache exists before first
onboarding, as the ADR requires).
- Local: `pytest tests/test_flake_checks.py` 12/12 incl. full `nix flake
check`; warm hm-check build ~7 s (Tier-0 budget safe).
- Dogfood: personal-config canary builds; categorized diff + acceptance
allowlist in #822.
- Caught-by-gates during the run: E3 YAML literal-block break (hotfix
#834), two statix grouped-attr rejections, one ruff-format nit — all
fixed pre-merge.

## Changelog (what this PR adds under `Unreleased`)

### Added

- **ADR: terminal home environment as devkit home-manager modules**
([#815](#815))
- Accepted `docs/rfcs/ADR-home-environment-modules.md`: parameterized
`vigos.*` home-manager modules as a second product of this repo (epic
[#814](#814)).

- **Home-manager module release/versioning policy**
([#816](#816))
- `docs/NIX.md`: modules ride the existing release train (consumers pin
tags), `mkRenamedOptionModule` deprecation shims, dogfood-canary
exception, and the `#### Modules` changelog sub-heading convention.
- Workspace scaffold `vigos.url` float is now documented as deliberate,
with the pin recipe.

- **Scheduled nixpkgs-unstable lock bump**
([#817](#817))
- Weekly workflow refreshing the fast-movers pin (uv, gh, claude-code)
via a chore PR to dev, gated by full CI.

- **vigos.* home module set + homeConfigurations matrix**
([#818](#818),
[#819](#819))
-
`homeManagerModules.{default,packages,shell,multiplexer,cli,direnv,git}`
exported as path modules (+ `homeModules` alias); `home-manager` flake
input (release-26.05, nixpkgs follows); `ci-{minimal,full}`
homeConfigurations across 4 systems built as Tier-0 `hm-*` checks
(x86_64-darwin eval-only).

- **Home Matrix CI workflow**
([#820](#820))
- Builds the ci homeConfigurations on aarch64-darwin (macos-latest) and
aarch64-linux and pushes closures to Cachix; separate non-required
workflow (fail-soft by status).

- **vigos.shell module**
([#821](#821))
- Bash + zsh, starship, atuin, zoxide under one enable flag; opt-in
secretsEnv hook exporting ~/.config/vigos/secrets/<NAME> per the ADR
credentials interface.

- **vigos.multiplexer, vigos.cli, vigos.direnv modules**
([#821](#821))
- tmux org defaults (vi keys, sane scrollback), modern-unix config
(bat/eza/fzf/ripgrep/fd — configuration only, packages stay in
vigos.packages), direnv + nix-direnv.

- **vigos.git module**
([#821](#821))
- git + delta, gh (ssh protocol), lazygit; identity and per-user-x-host
SSH signing are null-default options — nothing is written unless set, so
fresh hosts never fail their first commit.

- **templates.personal + homeConfigurations.demo**
([#827](#827))
- `nix flake init -t github:vig-os/devcontainer#personal` scaffolds a
personal home-manager flake on the vigos.* modules; `demo` is the
full-profile reference configuration.

- **Home environment docs**
([#825](#825),
[#826](#826))
- docs/home/: bootstrap guide (installer, macOS trusted-users trap,
first activation), override cookbook, rollback table, best-effort Intel
meaning, credential-hygiene runbook.

- **CLAUDE.md hierarchy templates**
([#828](#828))
- docs/home/claude-md/: user-global, workspace-root, and workspace layer
templates + the directory-layout convention that makes the cascade work.
Guidelines, not enforcement.

### Changed

#### Modules

- **homeManagerModules.default is now the umbrella** importing every
`vigos.*` module, each disabled by default
([#818](#818)); existing
imports keep working unchanged.

### Deprecated

#### Modules

- **`programs.vigos-devtools.enable`** → `vigos.packages.enable`
([#818](#818)); a
`mkRenamedOptionModule` shim keeps the old option working for one
release (docs/NIX.md policy).

## Left for the morning

1. Review, un-draft, merge to `dev`.
2. Decide: promote Home Matrix to a required check.
3. Confirm or reverse the scaffold `vigos.url` documented-float choice.
4. Post-merge: `workflow_dispatch` test of `update-nixpkgs-unstable.yml`
(#817).
5. B1 acceptance: switch on the canary branch, sign off the allowlist,
delete private copies (#822).
6. Schedule B2/#823 + B3/#824; pick the first module-bearing tag (starts
the pin-tags clock).

Refs: #814
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