feat: idols-akane - add virtfs file sharing between host & guest

This commit is contained in:
Ryan Yin
2026-03-08 00:50:43 +08:00
parent 4211d18ad1
commit 7ea1e6ae16
2 changed files with 21 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ in
"fat"
"vfat"
"exfat"
# for file sharing between host & guests
"virtiofs"
];
boot.initrd.availableKernelModules = [

View File

@@ -0,0 +1,18 @@
{
fileSystems."/mnt/utm" = {
device = "share"; # 9p tag name from UTM/QEMU configuration
fsType = "9p"; # Virtio-9p filesystem type
options = [
"trans=virtio" # Use virtio transport for paravirtualized I/O
"version=9p2000.L" # 9P protocol version (best Linux compatibility)
"ro" # Read-only access
"_netdev" # Mark as network-dependent (waits for network)
"nofail" # Don't fail boot if mount fails
"auto" # Mount automatically with -a
# Ownership mapping - all files appear as specified user/group
"uid=1000" # Map to user ID 1000
"gid=1000" # Map to group ID 100
];
};
}