Files
numbus-server/templates/nix-config/disks/parity.nix
T
2026-01-02 22:46:03 +01:00

27 lines
756 B
Nix

"parity-${j}" = {
type = "disk";
device = "${PARITY_DISK_ID}";
content = {
type = "gpt";
partitions = {
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted-parity-${j}";
initrdUnlock = false;
settings = {
keyFile = "/etc/secrets/disks/parity-disk-${j}";
allowDiscards = ${ALLOW_DISCARDS:-false};
};
content = {
type = "filesystem";
format = "xfs";
mountpoint = "/mnt/parity-${j}";
};
};
};
};
};
};