format rootfs in vm itself

This commit is contained in:
Jörg Thalheim
2024-02-09 16:50:58 +01:00
parent 4c6a95c844
commit d2d4267003
2 changed files with 9 additions and 23 deletions

View File

@@ -35,21 +35,24 @@ let
boot.initrd.kernelModules = [ "virtiofs" ];
virtualisation.writableStore = false;
virtualisation.fileSystems = lib.mkForce ({
"/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
options = [ "defaults" "x-systemd.makefs" ];
};
"/nix/store" = {
device = "nix-store";
options = [ "x-systemd.requires=systemd-modules-load.service" ];
fsType = "virtiofs";
};
"/" = {
device = "/dev/vda";
fsType = "ext4";
noCheck = true;
options = [ "defaults" "x-systemd.makefs" ];
};
"/vmstate" = {
device = "/dev/vdb";
options = ["x-systemd.makefs"];
options = [ "x-systemd.makefs" ];
noCheck = true;
fsType = "ext4";
};
${config.clanCore.secretsUploadDirectory} = {