add spice.vgamem option for QXL video memory

When spice.vgamem is set (e.g. 64), uses -device qxl-vga,vgamem_mb=N
instead of -vga qxl (which defaults to 16MB). When null (default),
uses -vga qxl for backwards compatibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Git Sagar 2026-06-08 13:53:00 +05:30
parent dd5aeafae9
commit 4226f6fdfd
2 changed files with 6 additions and 1 deletions

View file

@ -97,6 +97,11 @@ with lib;
default = "qxl";
description = "QEMU -vga type to use with SPICE (qxl, virtio, std, none).";
};
vgamem = mkOption {
type = types.nullOr types.int;
default = null;
description = "Video memory in MB for QXL device. When set, uses -device qxl-vga instead of -vga qxl.";
};
};
nographic = mkOption {
type = types.bool;