core/qemu: auto-add necessary kernel modules

Fix #29
This commit is contained in:
Louis Bettens 2022-02-13 10:37:24 +01:00 committed by Louis Bettens
parent 386019f885
commit 5a379d8c52

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
'';