Huge script change. Reformatting of the disk_config_configuration function.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"content-${DISK_NUMBER}" = {
|
||||
"content-${i}" = {
|
||||
type = "disk";
|
||||
device = "${DISK_PATH}";
|
||||
device = "${CONTENT_DISK_ID}";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
@@ -8,12 +8,12 @@
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "crypted-content-${DISK_NUMBER}";
|
||||
settings.keyFile = "/etc/secrets/disks/content-disk-${DISK_NUMBER}";
|
||||
name = "crypted-content-${i}";
|
||||
settings.keyFile = "/etc/secrets/disks/content-disk-${i}";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "xfs";
|
||||
mountpoint = "/mnt/content-${DISK_NUMBER}";
|
||||
mountpoint = "/mnt/content-${i}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user