feat(virtiofs): moved son root on virtiofs

This commit is contained in:
catvayor 2024-11-15 15:09:52 +01:00
parent 76e4b95423
commit b088049c45
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
2 changed files with 10 additions and 14 deletions

View file

@ -79,7 +79,10 @@
]; ];
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
virtualisation.libvirtd.enable = true; virtualisation.libvirtd = {
enable = true;
qemu.vhostUserPackages = [ pkgs.virtiofsd ];
};
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;

View file

@ -9,28 +9,21 @@
partitions = { partitions = {
ESP = { ESP = {
type = "EF00"; type = "EF00";
size = "100M"; size = "100%";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
}; };
}; };
root = {
size = "100%";
content = {
type = "filesystem";
format = "bcachefs";
mountpoint = "/";
mountOptions = [
"fsck"
"fix_errors"
];
};
};
}; };
}; };
}; };
}; };
}; };
boot.initrd.kernelModules = [ "virtiofs" ];
fileSystems."/" = {
device = "root";
fsType = "virtiofs";
};
} }