From 4bea767b2ec0686a8321c366352ac313e55610d1 Mon Sep 17 00:00:00 2001 From: naps62 Date: Mon, 17 Aug 2026 08:05:24 +0000 Subject: [PATCH] feat: serial console on yolo Needed before switching to vga: virtio-gl, which leaves no QEMU console surface for noVNC or screendump. Co-Authored-By: Claude Opus 5 --- hosts/yolo/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/yolo/default.nix b/hosts/yolo/default.nix index 0a00d95..6d67ac9 100644 --- a/hosts/yolo/default.nix +++ b/hosts/yolo/default.nix @@ -26,6 +26,15 @@ # virtio drivers; the agent itself is a separate service. services.qemuGuest.enable = true; + # The only out-of-band way in. `vga: virtio-gl` renders through a GL context + # with no QEMU console surface, so noVNC and screendump both go dark; this + # pairs with the VM's serial0 socket to keep `qm terminal` working. Listed + # last so it wins /dev/console and gets the getty. + boot.kernelParams = [ + "console=tty1" + "console=ttyS0,115200" + ]; + # Not a security downgrade: naps62 is in `docker`, which is already # root-equivalent, and sshd is key-only — so the prompt guards nothing while # blocking unattended rebuilds (nh shells out to sudo and needs a TTY).