mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-06 06:56:31 +01:00
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:
1 parent
9b60a0020d
commit
146e794b7b
5 files changed
+180
-53
No files matched your search
@@ -179,10 +179,11 @@ it. `just vm NAME` runs one; [`docs/dev/vm-tests.md`](docs/dev/vm-tests.md) has
|
||||
the details, including how to run them on a Mac.
|
||||
|
||||
To try komorebi by hand in a real Plasma session, the flake has Plasma guests
|
||||
to develop in, for an Apple silicon Mac: two that QEMU runs, one with a session
|
||||
that can be reached over RDP, and a disk image for UTM, which renders on the
|
||||
Mac's GPU. [`docs/dev/utm.md`](docs/dev/utm.md) says how to build and run them;
|
||||
`plasma-guests-eval` evaluates them on every system.
|
||||
to develop in. For an Apple silicon Mac there are two that QEMU runs, one with a
|
||||
session that can be reached over RDP, and a disk image for UTM, which renders on
|
||||
the Mac's GPU. For a Linux machine with KVM there are 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; `plasma-guests-eval` evaluates them on every system.
|
||||
|
||||
## How it fits together
|
||||
|
||||
|
||||
Reference in new issue
Block a user