Adding RAID

This commit is contained in:
Lyes Saadi 2025-10-12 21:35:09 +02:00
parent ff33c189e2
commit 630f7f6d68
Signed by: lyes
GPG key ID: 55A1D803917CF39A
2 changed files with 12 additions and 0 deletions

View file

@ -13,4 +13,9 @@
enable = true;
# network.enable = true;
};
# RAID
boot.swraid.mdadmConf = ''
ARRAY /dev/md127 metadata=1.2 UUID=a531d539:bc4263d2:bcc8330f:0d364869
'';
}

View file

@ -3,6 +3,13 @@
{
services.openssh.enable = true;
boot.swraid = {
enable = true;
mdadmConf = ''
DEVICE partitions
'';
};
environment.systemPackages = with pkgs; [
mdadm
];