chore: add .envrc for anvil-dev fabric integration#431
Open
gerchowl wants to merge 1 commit into
Open
Conversation
When running on Lars anvil-dev VM, point MAT_VIS_CACHE at /srv/anvil/caches/mat-vis (substrate-backed, shared with vm-runner CI) so model/dataset downloads dont fill vm-devs local rootfs. HF_HOME is already exported globally via PAM session vars. On non-anvil hosts the guard skips and MAT_VIS_CACHE stays at its default (~/.cache/mat-vis). direnv hook auto-loads on cd; other machines should run direnv allow once to opt in.
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.
Why
Lars runs Claude Code agents on
anvil-dev(NixOS microVM, see gerchowl/anvil ADR-020). The fabric exports a set of env vars via PAM (STRATA_DATA_DIR,SCCACHE_DIR,HF_HOME, …) that every shell on vm-dev inherits — including agent subshells.This PR adds a
.envrcso direnv auto-loads project-specific bindings when youcdinto the repo on vm-dev.What changes
Route MAT_VIS_CACHE into anvil-dev substrate (/srv/anvil/caches/mat-vis) so model/dataset downloads dont fill vm-devs rootfs. Guarded — no-op on non-anvil hosts.
Activation
Run
direnv allowonce per checkout to enable. On non-anvil hosts (Mac, CI), guarded exports stay unset and code falls back to its existing defaults — zero behaviour change for non-anvil users.