forked from DGNum/infrastructure
fix(web01): Fix disko config
This commit is contained in:
parent
c512d2d043
commit
30e13a116f
1 changed files with 15 additions and 16 deletions
|
@ -14,23 +14,21 @@ in
|
||||||
device = "/dev/vdb";
|
device = "/dev/vdb";
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "table";
|
type = "gpt";
|
||||||
format = "gpt";
|
partitions = {
|
||||||
partitions = [
|
ESP = {
|
||||||
{
|
|
||||||
name = "ESP";
|
|
||||||
start = "1MiB";
|
start = "1MiB";
|
||||||
|
label = "ESP";
|
||||||
end = "512MiB";
|
end = "512MiB";
|
||||||
fs-type = "fat32";
|
type = "EF00";
|
||||||
bootable = true;
|
priority = 1;
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
{
|
luks = {
|
||||||
name = "luks";
|
|
||||||
start = "512MiB";
|
start = "512MiB";
|
||||||
end = "-4GiB";
|
end = "-4GiB";
|
||||||
content = rec {
|
content = rec {
|
||||||
|
@ -38,7 +36,7 @@ in
|
||||||
name = luksName;
|
name = luksName;
|
||||||
extraOpenArgs = [ "--keyfile-size=1" ];
|
extraOpenArgs = [ "--keyfile-size=1" ];
|
||||||
extraFormatArgs = extraOpenArgs;
|
extraFormatArgs = extraOpenArgs;
|
||||||
keyFile = "/dev/zero";
|
settings.keyFile = "/dev/zero";
|
||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
mountpoint = "/mnt/btrfs-root";
|
mountpoint = "/mnt/btrfs-root";
|
||||||
|
@ -65,17 +63,18 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
{
|
swap = {
|
||||||
name = "swap";
|
label = "swap";
|
||||||
start = "-4GiB";
|
start = "-4GiB";
|
||||||
end = "100%";
|
end = "100%";
|
||||||
|
priority = 3;
|
||||||
content = {
|
content = {
|
||||||
type = "swap";
|
type = "swap";
|
||||||
randomEncryption = true;
|
randomEncryption = true;
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue