tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
869 stars 88 forks source link

Bcachefs support #232

Open theoparis opened 2 months ago

theoparis commented 2 months ago

I realized that in order to build an ISO with bcachefs support I need to build the ISO using nix, except I can't do that from macOS 😕 Would it be possible to include bcachefs-tools and the kernel module in the prebuilt ISO? It seems like it should be supported since Linux 6.7... However I don't see it in the kernel config file in this repository despite using the 6.9 kernel.

theoparis commented 2 months ago

Actually, I might be able to use the prebuilt ISO with nix shell for bcachefs-tools with an overlay that overrides fuseSupport. That way I can try using bcachefs format and bcachefs fusemount`. However it'd still be nice if btrfs/bcachefs were supported out of the box.

Edit: fusemount doesn't work, it gives filesystem errors like "fuse: bad error value: ..."

tpwrules commented 1 month ago

This is probably possible, I will have to check that everything cross-compiles properly. We would also have to enable the appropriate kernel config. If you have access to another Linux machine or VM it should be easy to build your own ISO with this feature.

I will consider it for next release, but no promises. Certainly no ZFS!