This commit is contained in:
Raphael Numbus
2025-12-06 22:22:16 +01:00
parent 0946cc7b08
commit 17eb579a20
13 changed files with 451 additions and 299 deletions
@@ -1,4 +1,4 @@
"data-${DISK_NUMBER}" = {
"content-${DISK_NUMBER}" = {
type = "disk";
device = "${DISK_PATH}";
content = {
@@ -8,12 +8,12 @@
size = "100%";
content = {
type = "luks";
name = "crypted-data-${DISK_NUMBER}";
settings.keyFile = "/run/secrets/disks/data-disk-${DISK_NUMBER}";
name = "crypted-content-${DISK_NUMBER}";
settings.keyFile = "/run/secrets/disks/content-disk-${DISK_NUMBER}";
content = {
type = "filesystem";
format = "xfs";
mountpoint = "/mnt/data-${DISK_NUMBER}";
mountpoint = "/mnt/content-${DISK_NUMBER}";
};
};
};