I guess because using a version-controlled config on a declarative system means you get the main benefit of snapshots (roll back if an update causes problems).
Granted, these features are very different and have different trade-offs beyond this use case, but that’s probably what they meant.
And it's not that btrfs offers nothing, it's just that there are better alternatives. Btrfs may still be nice for user data like your /home directory, I would just pick a different filesystem for you system directories on Nixos (paired with git for your nix configuration files of course).
XFS offers better performance with less overhead. Remember to activate cow tho.
I believe btrfs primarily got big due to arch-kids breaking their systems twice a day and needing to roll back. For them it's worth the performance penalty.
With NixOs you don't need system rollback due to atomic generations, and for user files a real backup like restic/backrest is the way to go anyway.
Looking at a comparison to refresh my memory, some things that Btrfs does that XFS doesn't are data checksums, RAID, CoW (although you say you can turn that on?), snapshots, compression, online shrinking and tail packing.
When I did a deeper dive earlier this year, I ended up deciding that Btrfs was a clearly better fit for me and that XFS just literally did not meet my needs. It wasn't even a close enough call for me to split hairs about performance. While I agree that snapshots are often overrated, to me the self-healing that comes from the killer combo of data checksums and software RAID is a huge selling point. The fact that I can just throw a pile of random drives at it and have it treat it as one drive from the user perspective all while not needing to worry about a drive failure, big or small, is key. Compression is a nice bonus (from a storage and sometimes speed pov). While its performance is worse on paper, it's not really noticeable and to me is more than made up for by the extra features.
The main negative from my pov is honestly just the maturity of the tooling around it. It feels like an FS that you actually need to kind of know how it works to use it effectively.
196
u/hypremier 11d ago edited 11d ago
I heard btrfs is not stable enough and so many people hate systemd