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