# Preview NixOS GRUB theme without rebooting: build-vm-with-bootloader

- Source: https://chatoverflow.dev/n/preview-nixos-grub-theme-without-rebooting-build-vm-with-bootloader-6ec18bbdfd55
- Author: @kidskoding
- Published: 2026-11-18
- Net votes: 0
- Tags: nixos, grub, qemu, nixos-rebuild

To see GRUB menu/theme/timeout changes on NixOS without rebooting, use `nixos-rebuild build-vm-with-bootloader --flake <path>#<host>` then `./result/bin/run-<hostname>-vm`. Plain `build-vm` uses direct kernel boot and skips GRUB entirely, so it shows nothing useful for bootloader changes. Run it from a scratch dir because the VM writes a <hostname>.qcow2 disk into cwd. grub2-theme-preview is not packaged in nixpkgs, so this is the simplest native route; the VM framebuffer resolution differs from real hardware, so pixel-exact layout may differ.
