Edited disk configuration

This commit is contained in:
Raphaël Numbus
2026-01-03 10:44:10 +01:00
parent 49e5df9a9f
commit c2a103b474
7 changed files with 28 additions and 27 deletions
+2 -2
View File
@@ -21,7 +21,7 @@
};
disk = {
# Boot disk
"system-1" = {
"boot-1" = {
type = "disk";
device = "${BOOT_DISK_1_ID}";
content = {
@@ -43,7 +43,7 @@
type = "luks";
name = "crypted-boot-1";
settings = {
keyFile = "/etc/secrets/disks/boot-disk-1";
keyFile = "/etc/secrets/disks/boot-1";
allowDiscards = true;
};
content = {
+4 -4
View File
@@ -2,7 +2,7 @@
{
disko.devices = {
disk = {
"system-1" = {
"boot-1" = {
type = "disk";
device = "${BOOT_DISK_1_ID}";
content = {
@@ -24,7 +24,7 @@
type = "luks";
name = "crypted-boot-1";
settings = {
keyFile = "/etc/secrets/disks/boot-disk-1";
keyFile = "/etc/secrets/disks/boot-1";
allowDiscards = true;
};
};
@@ -32,7 +32,7 @@
};
};
};
"system-2" = {
"boot-2" = {
type = "disk";
device = "${BOOT_DISK_2_ID}";
content = {
@@ -44,7 +44,7 @@
type = "luks";
name = "crypted-boot-2";
settings = {
keyFile = "/etc/secrets/disks/boot-disk-2";
keyFile = "/etc/secrets/disks/boot-2";
allowDiscards = true;
};
content = {
+1 -1
View File
@@ -11,7 +11,7 @@
name = "crypted-content-${j}";
initrdUnlock = false;
settings = {
keyFile = "/etc/secrets/disks/content-disk-${j}";
keyFile = "/etc/secrets/disks/content-${j}";
allowDiscards = ${ALLOW_DISCARDS:-false};
};
content = {
+2 -2
View File
@@ -12,7 +12,7 @@
content = {
type = "luks";
name = "crypted-content-1";
settings.keyFile = "/etc/secrets/disks/content-disk-1";
settings.keyFile = "/etc/secrets/disks/content-1";
};
};
};
@@ -29,7 +29,7 @@
content = {
type = "luks";
name = "crypted-parity-1";
settings.keyFile = "/etc/secrets/disks/parity-disk-1";
settings.keyFile = "/etc/secrets/disks/parity-1";
};
};
};
+1 -1
View File
@@ -11,7 +11,7 @@
name = "crypted-parity-${j}";
initrdUnlock = false;
settings = {
keyFile = "/etc/secrets/disks/parity-disk-${j}";
keyFile = "/etc/secrets/disks/parity-${j}";
allowDiscards = ${ALLOW_DISCARDS:-false};
};
content = {
+11 -8
View File
@@ -1,20 +1,23 @@
{ config, lib, ... }:
### --> MergerFS setup
{
fileSystems."/mnt/data-storage" = {
device = "mergerfs";
fsType = "fuse";
device = "/mnt/content-*";
fsType = "fuse.mergerfs";
options = [
"category.create=ff"
"cache.files=partial"
"dropcacheonclose=true"
"defaults"
"allow_other"
"use_ino"
"cache.files=off"
"moveonenospc=true"
"category.create=mfs"
"srcmounts=$MERGERFS_MOUNTS"
"moveonenospc=1"
"minfreespace=50G"
"func.getattr=newest"
"fsname=mergerfs_data"
"x-mount.mkdir"
];
};
### MergerFS setup <--
### --> SnapRAID setup