feat: improve video configuration for VM and Live ISO
This commit is contained in:
Binary file not shown.
@@ -4,6 +4,7 @@
|
||||
imports = [
|
||||
./options.nix
|
||||
./state.nix
|
||||
./graphics.nix
|
||||
./nix.nix
|
||||
./scripts.nix
|
||||
./systemd.nix
|
||||
|
||||
10
core/system/graphics.nix
Normal file
10
core/system/graphics.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user