core/qemu: auto-add necessary kernel modules

Fix #29
This commit is contained in:
Julie B. 2022-02-13 10:37:24 +01:00
parent cce9ef1596
commit c4844cc6ec

View File

@ -32,6 +32,8 @@ mkIf (cfg.enable && cfg.guestType == "qemu") {
fsType = "9p";
};
boot.initrd.availableKernelModules = [ "virtio_pci" "9p" "9pnet_virtio" ];
boot.initrd.postMountCommands = ''
test "$stage2Init" = /init && stage2Init=/boot/init
'';