I have recently purchased an NVMe M2 SSD enclosure for my disk to use as portable storage. Kept hearing about how great f2fs filesystem can be for these kind of disk, so I had to enable it on ubuntu (should work on other distributions). That is how you can do it:
$ sudo modprobe -v f2fs
$ sudo vim /etc/modules
# Then, add the line below there:
f2fs
$ sudo apt install -y f2fs-tools libf2fs-format4 android-libf2fs-utils -y