Repository navigation
just vm: boot nix-config's workstation VM from the ww3-gpu checkout - #103
Merged
Merged
Conversation
`just vm` and `just vm-reset` call the recipes of the same name in the nix-config submodule, at the pinned commit. The VM is defined at nix-config's root, which the labs/pratico sparse checkout leaves off disk, so both first disable the sparse checkout when flake.nix is missing. That is local state: `just submodule-init` or `just up` make the submodule sparse again. Tested: just --list parses; in a scratch sparse clone of nix-config, `just _nix-config-full` materialised the root and `just --dry-run vm` / `vm-reset` dispatch to nix-config's justfile. The VM itself was not booted (no KVM in this container). Cost: none
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.
Before: running
just vmin ww3-gpu failed with "Justfile does not contain recipevm". The VM is only defined in nix-config's root justfile, and the submodule's sparse checkout (labs/pratico) leaves that file off disk.After:
just vmandjust vm-resetin ww3-gpu run nix-config's recipes of the same name, at the pinned commit (just -f nix-config/justfile -d nix-config vm). Ifnix-config/flake.nixis missing, they first turn off the sparse checkout. That is local state only:just submodule-initorjust upmake the submodule sparse again.Tested:
just --listparses. In a scratch sparse clone of nix-config,_nix-config-fullchecked out the root andjust --dry-run vm/vm-resetdispatched to nix-config's justfile. The VM itself was not booted, because this container has no KVM.Cost: none
🤖 Generated with Claude Code
https://claude.ai/code/session_01AmUouaTRqCtWwBVcf9jyrs
Generated by Claude Code