mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
devvm --layers desktop (or desktop under the picker's Layers heading) gives a VM the Xfce desktop devvm desktop opens; base no longer has it. - assets/features/desktop.sh moves to assets/layers/desktop.sh, with a built-in layer's header, and assets/layers/desktop.policy (no rules: its packages come from the distribution's archive, which base's policy has). - image.DesktopLayer joins image.Builtins (desktop, docker, nix, sorted): reserved, listed under Layers, taken by --layers and completion, its policy read by netpolicy.Policies. - build: desktopFeature and chosenFeatures' special case are gone; until a choice is made, base gets every feature. devvm setup --features desktop is no_feature. - devvm desktop: desktop_no_feature becomes desktop_no_layer (devvm rm, then devvm --layers desktop), linked to the desktop page. The picker's row: pick_layer_desktop. - apt snapshot: base.sh's /etc/apt/apt.conf.d/50devvm-snapshot stays in base's image, and only guest/sync.sh (project VMs) removes it, so a layer built on base installs from the same snapshot and package lists; said in base.sh, desktop.sh and internals/images.md. - No backend feature: desktop builds and runs like any layer on Lima. base's image key changes (desktop leaves the features, base.sh's comment changes), so base rebuilds, now about 400 MB smaller without the desktop on the --from tier's every-feature base, and for anyone who chose it. Tests: TestBuiltins; TestOwnFeatures (devvm's features without desktop, every one until chosen, desktop refused); TestLayersAndCheckLayers, TestCompleteParts, TestPartFlags and TestUpPicker list desktop under Layers; TestBuiltinPolicies allows desktop.policy alone without rules; testscript: desktop.txtar (a base VM refused with desktop_no_layer, its build without the layer's script; --layers desktop builds the desktop image), setup.txtar (--features desktop is no_feature), the layer lists in build, layer, up and up_checks. e2e: the desktop section checks a base VM has none of the desktop's programs and is refused, then makes its VM with --layers desktop; from's Alpine VM gets the desktop layer too. Docs: using/desktop.md, using/images.md (built-in layers, desktop), using/customizing.md, using/from.md, using/_index.md, getting-started/commands.md, internals/desktop.md, internals/images.md (the desktop layer, the snapshot in layers), internals/design.md, contributing; the CLI reference for devvm desktop. Co-Authored-By: Claude Opus 5.5 <[email protected]>