virtualisation.bootPartition
NixOS option
The path (inside the VM) to the device containing the EFI System Partition (ESP). If you are not booting from a UEFI firmware, this value is, by default, null. The ESP is mounted to boot.loader.efi.efiSysMountpoint.
type: null or absolute pathDefault
if cfg.useEFIBoot then "/dev/disk/by-label/ESP" else if cfg.useBIOSBoot then "/dev/disk/by-label/BOOT" else null
Example
declared in: nixos/modules/virtualisation/qemu-vm.nixView source on NixOS/nixpkgs →"/dev/disk/by-label/esp"