How to just add ZFS? No booting / autoimporting

Hi folks,

I’m looking at
and ZFS - NixOS Wiki

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.


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.