added secure boot to qemu vms

This commit is contained in:
Rouven Seifert 2023-01-03 18:18:09 +01:00
parent 7f4629e928
commit 3c89dcaef4
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -64,6 +64,19 @@
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true; virtualisation.spiceUSBRedirection.enable = true;
# fix to enable secure boot in vms
environment.etc = {
"ovmf/edk2-x86_64-secure-code.fd" = {
source = config.virtualisation.libvirtd.qemu.package + "/share/qemu/edk2-x86_64-secure-code.fd";
};
"ovmf/edk2-i386-vars.fd" = {
source = config.virtualisation.libvirtd.qemu.package + "/share/qemu/edk2-i386-vars.fd";
mode = "0644";
user = "libvirtd";
};
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# essentials # essentials