x86_64: enable nested virtualization (speculatively)

This commit is contained in:
2025-06-25 08:16:57 +00:00
parent 1c268038b2
commit 70b0f3a100

View File

@@ -27,8 +27,16 @@ in
"rtc_cmos"
];
hardware.cpu.amd.updateMicrocode = true; # desktop
hardware.cpu.intel.updateMicrocode = true; # laptop
hardware.cpu.amd.updateMicrocode = true; # desko
hardware.cpu.intel.updateMicrocode = true; # lappy
boot.extraModprobeConfig = ''
# allow nested virtualization. XXX(2025-06-24): required for my work (?)
# see: <https://wiki.nixos.org/wiki/Libvirt#Nested_virtualization>
# see: <https://www.linux-kvm.org/page/Nested_Guests>
options kvm_amd nested=1
options kvm_intel nested=1
'';
sane.image.extraBootFiles = [ pkgs.bootpart-uefi-x86_64 ];
};