2023-09-20 12:40:48 +02:00
|
|
|
{
|
2023-10-06 04:30:39 +02:00
|
|
|
boot.loader.grub.enableCryptodisk = true;
|
2023-10-04 15:15:49 +02:00
|
|
|
disko.devices.disk.vda = {
|
|
|
|
device = "/dev/vda";
|
2023-10-05 06:01:40 +02:00
|
|
|
type = "disk";
|
2023-10-04 15:15:49 +02:00
|
|
|
content = {
|
2023-10-05 06:01:40 +02:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
boot = {
|
|
|
|
size = "1M";
|
|
|
|
type = "EF02";
|
|
|
|
}; # partitions.boot
|
2023-10-06 04:38:29 +02:00
|
|
|
ESP = {
|
|
|
|
size = "500M";
|
|
|
|
type = "EF00";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
|
|
|
}; # ESP
|
2023-10-05 06:01:40 +02:00
|
|
|
luks = {
|
|
|
|
size = "100%";
|
2023-10-04 15:15:49 +02:00
|
|
|
content = {
|
|
|
|
type = "luks";
|
2023-10-05 06:01:40 +02:00
|
|
|
name = "crypted";
|
2023-10-04 15:15:49 +02:00
|
|
|
extraOpenArgs = [ "--allow-discards" ];
|
|
|
|
content = {
|
2023-10-06 04:09:46 +02:00
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
}; # content
|
2023-10-05 11:07:17 +02:00
|
|
|
}; # content
|
|
|
|
}; # luks.partitions
|
2023-10-05 06:01:40 +02:00
|
|
|
}; # partitions
|
2023-10-04 15:15:49 +02:00
|
|
|
}; # content
|
2023-10-07 13:18:56 +02:00
|
|
|
}; # disko.devices.disk.vda
|
|
|
|
}
|