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.
Also adds instruction on replacing failed disk.
Closes#385.
Signed-off-by: Maurice Zhou <ja@apvc.uk>
* Add support for NixOS
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* updated files for immutable root fs
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* update ssh key location
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* change initrd host key name
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* add missing -p switch
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* comments about SSH and encrypted bpool
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* backup hardware-configuration.nix file
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* clearer wording for backup
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* global useDHCP flag is deprecated
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* point user to configuration.nix
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fixes for systemd-autofs; network; typo
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* force command to return 0
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fix command to postMount
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fix mount command
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* escape $i
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* create mountpoints before booting
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* replace postDevice,preMount command
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* disable zfs-mount
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* generate machine-id
Signed-off-by: Maurice Zhou <jasper@apvc.uk>