build(nix): guests for a Linux host

The Plasma guests were made for an Apple silicon Mac only: the flake fixed the
guest to aarch64-linux and the host of QEMU to the Mac. `mkPlasmaGuest` now
takes the system of the guest and the packages of the machine that runs QEMU,
and the flake has the two QEMU guests for a Linux machine with KVM as well:
plasma-vm-x86_64 and plasma-vm-session-x86_64, and the same pair for aarch64
(plasma-vm-aarch64, plasma-vm-session-aarch64). The three guests of a Mac keep
their names and are built from the same instructions.

An x86_64 machine has a VGA that QEMU adds unless it is told not to, which would
be a second display next to the virtio-gpu that KWin draws on. An x86_64 guest
therefore gets virtio-vga, a virtio-gpu that is also the VGA, and `-vga none`;
an aarch64 guest has no VGA and keeps virtio-gpu-pci.

plasma-guests-eval evaluates every guest and asserts what each is for: the
architecture of the guest, the system of its host, KVM or HVF, and one display
device. docs/dev/utm.md says which guest is for which host and how to build and
run one on a Linux machine; the README and CONTRIBUTING say that there are
guests for both.
This commit is contained in:
LGUG2Z committed 2026-10-28 13:27:11 -07:00
1 parent 9b60a0020d
commit 146e794b7b
5 files changed
+180 -53

No files matched your search

+7 -6
View File
@@ -142,12 +142,13 @@ nix build .#checks.x86_64-linux.kwin-effect-geometry-change-komorebi-install
## Plasma guests to develop in
[`nix/dev`](nix/dev) has NixOS guests with Plasma for trying a change by hand,
on an Apple silicon Mac: two that QEMU runs and a disk image for UTM.
[`docs/dev/utm.md`](docs/dev/utm.md) says how to build and run them, and what a
builder has to be. They install komorebi with the NixOS module, and carry
nothing of the person who uses them: a key, a password or a configuration of
yours goes into the guest when it runs, never into these files. The
`plasma-guests-eval` check evaluates them, and the VM suite `rdp` runs their
on an Apple silicon Mac (two that QEMU runs and a disk image for UTM) and on a
Linux machine with KVM (the same two QEMU guests, for `x86_64` and for
`aarch64`). [`docs/dev/utm.md`](docs/dev/utm.md) says how to build and run them,
and what a builder has to be for a Mac. They install komorebi with the NixOS
module, and carry nothing of the person who uses them: a key, a password or a
configuration of yours goes into the guest when it runs, never into these files.
The `plasma-guests-eval` check evaluates them, and the VM suite `rdp` runs their
RDP server, [`nix/dev/krdp.nix`](nix/dev/krdp.nix).
## Continuous integration