fix(vm): debug hang by disabling on-boot scripts and increasing resources
- Temporarily disable 'nomarchy-on-boot' and 'nomarchy-welcome' in Hyprland to isolate hang. - Increase VM memory to 4096MB and cores to 4. - Enable serial console debugging for VM. - Enable qemuGuest service.
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -120,17 +120,19 @@
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
# VM specific settings
|
||||
virtualisation.vmVariant = {
|
||||
virtualisation.memorySize = 2048;
|
||||
virtualisation.cores = 2;
|
||||
virtualisation.memorySize = 4096;
|
||||
virtualisation.cores = 4;
|
||||
virtualisation.graphics = true;
|
||||
virtualisation.qemu.options = [ "-vga virtio" ];
|
||||
virtualisation.qemu.options = [ "-vga virtio" "-serial mon:stdio" ];
|
||||
};
|
||||
|
||||
# Use a dummy hardware config for VM
|
||||
fileSystems."/" = { device = "/dev/disk/by-label/nixos"; };
|
||||
boot.loader.grub.device = "/dev/vda";
|
||||
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_blk" "virtio_gpu" "virtio_net" "virtio_mmio" ];
|
||||
boot.kernelParams = nixpkgs.lib.mkForce [ "video=1280x800" "quiet" "splash" "boot.shell_on_fail" ];
|
||||
boot.kernelParams = nixpkgs.lib.mkForce [ "video=1280x800" "quiet" "splash" "boot.shell_on_fail" "console=ttyS0" "console=tty1" ];
|
||||
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
# Setup default user for testing
|
||||
users.users.nomarchy = {
|
||||
|
||||
Reference in New Issue
Block a user