2023-08-14 21:16:20 +00:00
|
|
|
{
|
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
2024-07-19 19:17:48 +00:00
|
|
|
main = {
|
2023-08-14 21:16:20 +00:00
|
|
|
type = "disk";
|
|
|
|
device = "/dev/vdb";
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
2023-09-27 06:13:25 +00:00
|
|
|
size = "500M";
|
2023-08-14 21:16:20 +00:00
|
|
|
type = "EF00";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
2024-10-01 17:31:29 +00:00
|
|
|
mountOptions = [ "umask=0077" ];
|
2023-08-14 21:16:20 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
luks = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "luks";
|
|
|
|
name = "crypted";
|
2023-11-04 11:54:07 +00:00
|
|
|
settings.allowDiscards = true;
|
2023-08-14 21:16:20 +00:00
|
|
|
passwordFile = "/tmp/secret.key";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|