fix(web01): Fix disko config

This commit is contained in:
sinavir 2024-03-13 23:53:01 +01:00
parent c512d2d043
commit 30e13a116f

View file

@ -14,23 +14,21 @@ in
device = "/dev/vdb";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
type = "gpt";
partitions = {
ESP = {
start = "1MiB";
label = "ESP";
end = "512MiB";
fs-type = "fat32";
bootable = true;
type = "EF00";
priority = 1;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "luks";
};
luks = {
start = "512MiB";
end = "-4GiB";
content = rec {
@ -38,7 +36,7 @@ in
name = luksName;
extraOpenArgs = [ "--keyfile-size=1" ];
extraFormatArgs = extraOpenArgs;
keyFile = "/dev/zero";
settings.keyFile = "/dev/zero";
content = {
type = "btrfs";
mountpoint = "/mnt/btrfs-root";
@ -65,17 +63,18 @@ in
};
};
};
}
{
name = "swap";
};
swap = {
label = "swap";
start = "-4GiB";
end = "100%";
priority = 3;
content = {
type = "swap";
randomEncryption = true;
};
}
];
};
};
};
};
};