23 lines
617 B
Nix
23 lines
617 B
Nix
"parity-${j}" = {
|
|
type = "disk";
|
|
device = "${PARITY_DISK_ID}";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
luks = {
|
|
size = "100%";
|
|
content = {
|
|
type = "luks";
|
|
name = "crypted-parity-${j}";
|
|
settings.keyFile = "/etc/secrets/disks/parity-disk-${j}";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "xfs";
|
|
mountpoint = "/mnt/parity-${j}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|