Files
numbus-server/config-files/disks/data.nix
T

23 lines
644 B
Nix

"data-${DISK_NUMBER}" = {
type = "disk";
device = "${DISK_PATH}";
content = {
type = "gpt";
partitions = {
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted-data-${DISK_NUMBER}";
settings.keyFile = "/run/secrets/disks/data-disk-${DISK_NUMBER}";
content = {
type = "filesystem";
format = "xfs";
mountpoint = "/mnt/data-${DISK_NUMBER}";
};
};
};
};
};
};