Hey,
I’m setting up a Hetzner auction server with 15 HDD disks. The disks run from /dev/sda
→ /dev/sdo
.
I would want to setup all of the disks in the same way so that each of them have boot partitions and then rest of the disk is dedicated to zfs.
I already did the setup I wanted for another example server here which only had /dev/nvme0
and /dev/nvme1
here: hetzner-auction-nixos-example/disko-zfs.nix at a7a705f5c15ba322fdc28f5b0208bb23b4e6d236 · onnimonni/hetzner-auction-nixos-example · GitHub
This gets pretty repetitive and hard to maintain if I will do this exact same thing for 15 disks .
I haven’t yet figured out how to create loops in nix but I imagine something like that would be helpful.
How would you setup all of these disks in idiomatic nix?