diff --git a/flake.nix b/flake.nix index aac8a57..159a5f8 100644 --- a/flake.nix +++ b/flake.nix @@ -88,12 +88,14 @@ virtualisation.memorySize = 2048; virtualisation.cores = 2; virtualisation.graphics = true; + virtualisation.qemu.options = [ "-vga virtio" ]; }; # Use a dummy hardware config for VM fileSystems."/" = { device = "/dev/disk/by-label/nixos"; }; boot.loader.grub.device = "/dev/vda"; boot.initrd.kernelModules = [ "virtio_gpu" ]; + boot.kernelParams = [ "video=1280x800" ]; # Ensure the user has the right groups for graphical environment users.users.nixos = { @@ -121,12 +123,14 @@ virtualisation.memorySize = 2048; virtualisation.cores = 2; virtualisation.graphics = true; + virtualisation.qemu.options = [ "-vga virtio" ]; }; # Use a dummy hardware config for VM fileSystems."/" = { device = "/dev/disk/by-label/nixos"; }; boot.loader.grub.device = "/dev/vda"; boot.initrd.kernelModules = [ "virtio_gpu" ]; + boot.kernelParams = [ "video=1280x800" ]; # Setup default user for testing users.users.nomarchy = { diff --git a/modules/system/plymouth.nix b/modules/system/plymouth.nix index ea6e18e..b3b130d 100644 --- a/modules/system/plymouth.nix +++ b/modules/system/plymouth.nix @@ -10,9 +10,8 @@ let installPhase = '' mkdir -p $out/share/plymouth/themes/nomarchy cp * $out/share/plymouth/themes/nomarchy/ - # Fix path in the plymouth file to point to the nix store if needed, - # but usually Plymouth looks in its theme dir. - sed -i "s|/etc/plymouth/themes/nomarchy|$out/share/plymouth/themes/nomarchy|g" $out/share/plymouth/themes/nomarchy/nomarchy.plymouth + # Fix path in the plymouth file to point to the nix store + sed -i "s|/[a-z]*/share/plymouth/themes/nomarchy|$out/share/plymouth/themes/nomarchy|g" $out/share/plymouth/themes/nomarchy/nomarchy.plymouth ''; }; in