From 2bdcc0aba074158c40c0ac6e010547c0e6e3708e Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Wed, 3 Jun 2026 20:55:04 +0100 Subject: [PATCH] fix(live): enable VM guest agents so Hyprland boots at full resolution The nomarchy-live ISO imported ./core and hosts/nomarchy-live.nix but not core/system/vm-guest.nix, which is the only place spice-vdagentd/qemuGuest were enabled. Without those agents a VM's virtio-gpu only advertises its 1024x768 fallback mode, so Hyprland's `monitor = , highres, auto` rule picks that as the highest mode and the live session boots tiny. Co-Authored-By: Claude Opus 4.8 --- hosts/nomarchy-live.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/nomarchy-live.nix b/hosts/nomarchy-live.nix index 4eb8a25..bbda20c 100644 --- a/hosts/nomarchy-live.nix +++ b/hosts/nomarchy-live.nix @@ -49,6 +49,14 @@ ]; services.xserver.videoDrivers = [ "amdgpu" "radeon" "nouveau" "modesetting" "fbdev" "virtio" ]; + # VM guest agents. Without these the virtio-gpu connector only advertises + # its 1024x768 fallback mode, so Hyprland's `monitor = , highres, …` rule + # picks that as the highest available resolution and the live session boots + # tiny. The agents let the SPICE/QEMU host negotiate a real resolution. + # (The installed system gets the same wiring via core/system/vm-guest.nix.) + services.spice-vdagentd.enable = true; + services.qemuGuest.enable = true; + environment.etc."install.sh" = { source = ../installer/install.sh; mode = "0755";