nixos/qemu-vm: Ensure 9pnet_virtio module is loaded for shared dirs (#343574)
This commit is contained in:
commit
ea2838e1ce
@ -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"
|
||||
|
@ -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 [
|
||||
|
Loading…
Reference in New Issue
Block a user