How to just add ZFS? No booting / autoimporting

Hi folks,

I’m looking at

search.nixos.org/options
and ZFS - NixOS Wiki
and https://openzfs.github.io/openzfs-docs/Getting%20Started/NixOS

and they all show code / examples how to boot from ZFS or auto-import pools…

But what if I just want to add ZFS into my system so I can temporarily connect a disk and zfs import it?

Please let me know how to do that.

Thank you!

boot.supportedFilesystems = [ "zfs" ]; should do what you want.

5 Likes

Thank you. I was confused about that since I don’t need it to boot and I thought that “boot.” will put a driver into initramfs - which I don’t need.

yes, the naming is slighly confusing. For initramfs-support, there is boot.initrd.supportedFilesystems.