diff --git a/hosts/thinkpad/default.nix b/hosts/thinkpad/default.nix index facfe07..64c7b36 100755 --- a/hosts/thinkpad/default.nix +++ b/hosts/thinkpad/default.nix @@ -64,6 +64,19 @@ virtualisation.libvirtd.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; [ # essentials