My NixOS based NAS configuration hosted on my personal Git Server. Feel free to look around. Be aware that not all configuration files are available in my public repository.
See r/nixos-modules. You may need to check out the commit from ./flake.lock
.
sudo cryptsetup luksDump /dev/$LUKS_PARTITION
sudo cryptsetup luksKillSlot /dev/$LUKS_PARTITION $SLOT_NUMBER
sudo cryptsetup luksAddKey /dev/$LUKS_PARTITION /boot/keys/disk.key
Run disk-format
. Then add the new disk to this flake config.
sudo smbpasswd -a nix
- Read the SnapRaid manual
- Format new drive with
disk-format
- Replace drive in flake config pool.
- Run
snapraid fix -d dX -l /tmp/snapraid.log
wheredX
is the disk e.g.d1
fromsnapraid.conf
- Run
snapraid check -d dX -a
- Resync with new drive:
snapraid sync
NOTE: For the snapraid
commands use the provides alias e.g. snapraid-pool-01
that use the btrfs-snapraid
script with config for pool-01
.
- In the BIOS, go to the
Advanced
tab and selectPCIe/PCI/PnP Configuration
. Change theNVMe Firmware Source
toAMI Native Support
. - In the BIOS, go to the
Boot
tab and changeBoot Mode Select
toUEFI
. - In the BIOS, go to the
Boot
tab and assign[UEFI Hard Disk]
toUEFI Boot Order #1
. - Boot your Install medium with
F11
(Boot Menu) and install the system.
Parity | Data | Data | Data |
---|---|---|---|
Slot 21 | Slot 22 | Slot 23 | Slot 24 |
Slot 17 | Slot 18 | Slot 19 | Slot 20 |
Slot 13 | Slot 14 | Slot 15 | Slot 16 |
Slot 09 | Slot 10 | Slot 11 | Slot 12 |
Slot 05 | Slot 06 | Slot 07 | Slot 08 |
Slot 01 | Slot 02 | Slot 03 | Slot 04 |