nixos/qemu-vm: Ensure 9pnet_virtio module is loaded for shared dirs (#343574)

This commit is contained in:
Will Fancher 2024-09-25 23:11:08 -04:00 committed by GitHub
commit ea2838e1ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ let
"kmod-static-nodes.service"
"local-fs-pre.target"
"local-fs.target"
"modprobe@.service"
"multi-user.target"
"paths.target"
"poweroff.target"

View File

@ -1169,7 +1169,7 @@ in
value.fsType = "9p";
value.neededForBoot = true;
value.options =
[ "trans=virtio" "version=9p2000.L" "msize=${toString cfg.msize}" ]
[ "trans=virtio" "version=9p2000.L" "msize=${toString cfg.msize}" "x-systemd.requires=modprobe@9pnet_virtio.service" ]
++ lib.optional (tag == "nix-store") "cache=loose";
};
in lib.mkMerge [