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;
virtualisation.libvirtd.enable = true;
virtualisation.libvirtd = {
enable = true;
qemu.vhostUserPackages = [ pkgs.virtiofsd ];
};
security.acme = {
acceptTerms = true;

View file

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