feat: improve video configuration for VM and Live ISO

This commit is contained in:
Bernardo Magri
2026-04-13 13:05:59 +01:00
parent 8e4e801244
commit 66096cbc46
7 changed files with 23 additions and 2 deletions

Binary file not shown.

View File

@@ -4,6 +4,7 @@
imports = [
./options.nix
./state.nix
./graphics.nix
./nix.nix
./scripts.nix
./systemd.nix

10
core/system/graphics.nix Normal file
View File

@@ -0,0 +1,10 @@
{ lib, ... }:
{
# Enable OpenGL/Graphics for Wayland Compositors (Hyprland)
# This provides better resolution and smoothness for all platforms.
hardware.graphics = {
enable = lib.mkDefault true;
enable32Bit = lib.mkDefault true;
};
}

View File

@@ -7,6 +7,11 @@
virtualisation.qemu.options = [ "-device" "virtio-vga" ];
};
# Improve VM resolution and guest experience
services.spice-vdagentd.enable = true;
services.qemuGuest.enable = true;
services.xserver.videoDrivers = [ "qxl" "virtio" "modesetting" ];
# Dummy hardware config for VM
fileSystems."/" = lib.mkDefault { device = "/dev/disk/by-label/nixos"; };
boot.loader.grub.device = lib.mkDefault "/dev/vda";