nix-config/hosts/patricknix/fs.nix

29 lines
685 B
Nix
Raw Normal View History

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 = [
(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; {
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;
}