I do that with ZFS for all the non-ancient stuff in github.com/Ericson2314/nixos-configuration
If you could point me to a practical instruction on how to get it running I’d be very thankful! I’m sure I’m missing something basic - as is usual when struggling with UNIXes…
ZFS filesystems within the same "pool" are also just more flexible.
The NixOS config part you can take from my repo. The command line part is the same as for any other linux. From memory:
cryptsetup luksformat physical-part
cryptsetup open physical-part arbitrary-name
some-command-to-make-file-system ... /dev/mapper/arbitrary-name
mount /dev/mapper/arbitrary-name
I do that with ZFS for all the non-ancient stuff in github.com/Ericson2314/nixos-configuration