From 690b33bd08aa98c51d8bc97198841d05663103e2 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 1 May 2024 00:40:00 +0200 Subject: [PATCH] Fix efi mount point for VMs --- lib/config/custom-build-vm.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/config/custom-build-vm.nix b/lib/config/custom-build-vm.nix index 7acaae7..ec213e1 100644 --- a/lib/config/custom-build-vm.nix +++ b/lib/config/custom-build-vm.nix @@ -9,6 +9,16 @@ }; config = { + virtualisation = + let + vmConfig = { + boot.loader.efi.efiSysMountPoint = lib.mkVMOverride "/boot"; + }; + in { + vmVariant = vmConfig; + vmVariantWithBootLoader = vmConfig; + }; + # Replace native `qemu` with `remote-viewer` system.build = {