2023-07-15 18:42:37 +00:00
|
|
|
{
|
2023-03-03 07:09:13 +00:00
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
2024-07-19 19:17:48 +00:00
|
|
|
main = {
|
2023-07-15 18:42:37 +00:00
|
|
|
device = "/dev/vdb";
|
2023-03-03 07:09:13 +00:00
|
|
|
type = "disk";
|
|
|
|
content = {
|
2023-07-15 18:42:37 +00:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
2023-09-27 06:13:25 +00:00
|
|
|
size = "500M";
|
2023-07-20 16:41:35 +00:00
|
|
|
type = "EF00";
|
2023-03-03 07:09:13 +00:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
2023-07-15 18:42:37 +00:00
|
|
|
};
|
|
|
|
root = {
|
2023-03-03 07:09:13 +00:00
|
|
|
end = "-1G";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
2023-07-15 18:42:37 +00:00
|
|
|
};
|
2023-11-12 09:46:36 +00:00
|
|
|
encryptedSwap = {
|
|
|
|
size = "10M";
|
2023-03-03 07:09:13 +00:00
|
|
|
content = {
|
|
|
|
type = "swap";
|
|
|
|
randomEncryption = true;
|
2024-05-06 09:43:53 +00:00
|
|
|
priority = 100; # prefer to encrypt as long as we have space for it
|
2023-11-12 09:46:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
plainSwap = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "swap";
|
2024-05-05 22:10:38 +00:00
|
|
|
discardPolicy = "both";
|
2023-08-11 06:11:01 +00:00
|
|
|
resumeDevice = true; # resume from hiberation from this device
|
2023-03-03 07:09:13 +00:00
|
|
|
};
|
2023-07-15 18:42:37 +00:00
|
|
|
};
|
|
|
|
};
|
2023-03-03 07:09:13 +00:00
|
|
|
};
|
2022-11-05 20:17:35 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|