openzfs / openzfs-docs

OpenZFS Documentation
https://openzfs.github.io/openzfs-docs/
135 stars 194 forks source link

NixOS Root on ZFS: use Nix-config for multi-disk #386

Closed ghost closed 1 year ago

ghost commented 1 year ago

NixOS has enjoyed popularity among ZFS users thanks to its declarative configuration and native ZFS support. However, the installation guide used hardcoded disk names in configuration files, which is unnecessary and is the source of difficulties in multidisk setups.

The guide is now rewritten to leverage expressions in the Nix language to manage multidisk setups.

@gmelikov

Signed-off-by: Maurice Zhou ja@apvc.uk

ghost commented 1 year ago

@gmelikov Completed 3 test-installations for both single and mirrored setups. I think it's ready for merging now. I was also unable to reproduce the issue reported in #371, I'll contact the reporter to test if the issue is fixed with this new guide.