2024-07-12 07:40:25 +02:00
|
|
|
{
|
2024-07-14 14:14:13 +02:00
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
sda = {
|
|
|
|
type = "disk";
|
|
|
|
device = "/dev/sda";
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
|
|
|
size = "500M";
|
|
|
|
type = "EF00";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
luks = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "luks";
|
|
|
|
name = "crypted";
|
|
|
|
settings.allowDiscards = true;
|
|
|
|
passwordFile = "/tmp/secret.key";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-07-12 07:40:25 +02:00
|
|
|
};
|
2024-07-14 13:25:12 +02:00
|
|
|
};
|
|
|
|
};
|
2024-07-14 14:14:13 +02:00
|
|
|
sdb = {
|
|
|
|
type = "disk";
|
|
|
|
device = "/dev/sdb";
|
2024-07-14 13:25:12 +02:00
|
|
|
content = {
|
2024-07-14 14:14:13 +02:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
Storage = {
|
|
|
|
type = "luks";
|
|
|
|
name = "storage-crypted";
|
|
|
|
settings.allowDiscards = true;
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/Storage";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-07-14 13:25:12 +02:00
|
|
|
};
|
2024-07-14 14:14:13 +02:00
|
|
|
}
|
2024-07-14 13:25:12 +02:00
|
|
|
};
|
2024-07-14 13:45:29 +02:00
|
|
|
};
|
2024-07-14 13:25:12 +02:00
|
|
|
}
|