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