2023-09-22 10:40:12 +02:00
|
|
|
{
|
|
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
boot.initrd.luks.devices."sda2".device = "/dev/sda2";
|
|
|
|
|
|
|
|
disko.devices.disk.sda = {
|
|
|
|
device = "/dev/sda";
|
|
|
|
content = {
|
|
|
|
type = "table";
|
|
|
|
format = "gpt";
|
|
|
|
partitions = [
|
|
|
|
{
|
|
|
|
name = "BOOT";
|
|
|
|
start = "0%";
|
|
|
|
end = "550MiB";
|
|
|
|
bootable = true;
|
|
|
|
flags = [ "esp" ];
|
|
|
|
fs-type = "fat32";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
|
|
|
} # partition 1
|
|
|
|
{
|
|
|
|
name = "LUKS";
|
|
|
|
start = "550MiB";
|
|
|
|
end = "100%";
|
|
|
|
content = {
|
|
|
|
type = "luks";
|
2023-09-22 12:45:23 +02:00
|
|
|
name = "ROOT";
|
2023-09-22 10:40:12 +02:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
2023-09-22 12:45:23 +02:00
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
2023-09-22 10:40:12 +02:00
|
|
|
}; # content.content
|
|
|
|
}; # content
|
|
|
|
} # partition 2
|
|
|
|
]; # partitions
|
|
|
|
}; # content
|
|
|
|
}; # disko.devices.disk.sda
|
|
|
|
} # root
|