Files
devvm/internal/image
w3cjandClaude Opus 5.5 d2dc8c74b6 feat(layers): desktop is a built-in layer, not one of base's features
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]>
2026-11-03 14:10:52 -07:00
..