From ec7c883ae4de72dc80ce8b7f638bbf95457b4a43 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 3 Jun 2025 18:27:56 +0200 Subject: [PATCH] Add software RAID in tent using 3 disks --- m/tent/configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/m/tent/configuration.nix b/m/tent/configuration.nix index 47238ac7..cbe3a6e4 100644 --- a/m/tent/configuration.nix +++ b/m/tent/configuration.nix @@ -36,4 +36,18 @@ port = 9002; listenAddress = "127.0.0.1"; }; + + boot.swraid = { + enable = true; + mdadmConf = '' + DEVICE partitions + ARRAY /dev/md0 metadata=1.2 UUID=496db1e2:056a92aa:a544543f:40db379d + MAILADDR root + ''; + }; + + fileSystems."/vault" = { + device = "/dev/disk/by-label/vault"; + fsType = "ext4"; + }; }