virtualisation.sharedDirectories

An attributes set of directories that will be shared with the virtual machine using VirtFS (9P filesystem over VirtIO). The attribute name will be used as the 9P mount tag.

Type
attribute set of (submodule)
Default
{ }
Example
{
  my-share = {
    source = "/path/to/be/shared";
    target = "/mnt/shared";
  };
}
Declared
<nixpkgs/nixos/modules/virtualisation/qemu-vm.nix>