2023-08-30 20:18:26 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
m2-ssd = {
|
|
|
|
type = "disk";
|
|
|
|
device = "/dev/disk/by-id/${config.secrets.secrets.local.disko.m2-ssd}";
|
|
|
|
content = with lib.disko.gpt; {
|
|
|
|
type = "table";
|
|
|
|
format = "gpt";
|
|
|
|
partitions = [
|
2024-01-11 22:42:03 +01:00
|
|
|
(partEfi "boot" "0%" "1GiB")
|
2023-09-26 22:25:58 +02:00
|
|
|
(partSwap "swap" "1GiB" "17GiB")
|
|
|
|
(partLuksZfs "rpool" "rpool" "17GiB" "100%")
|
2023-08-30 20:18:26 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
zpool = with lib.disko.zfs; {
|
2024-01-11 22:42:03 +01:00
|
|
|
rpool = mkZpool {datasets = impermanenceZfsDatasets;};
|
2023-05-26 17:30:37 +02:00
|
|
|
};
|
|
|
|
};
|
2023-10-15 22:09:08 +02:00
|
|
|
fileSystems."/state".neededForBoot = true;
|
2023-11-03 22:59:13 +01:00
|
|
|
fileSystems."/persist".neededForBoot = true;
|
2023-05-18 06:57:58 +02:00
|
|
|
}
|