Scaryzfs - enable scary experimental ZFS on NixOS

scaryzfs is a Nix flake that allows you to take manual control of the ZFS sources being used in your nixos configuration, and use a fork or pull request from ZFS upstream, despite the danger in doing so, in order to test or use more recent Linux kernel versions with ZFS on NixOS.

12 Likes

This should only really be used in a VM (nix microvm/full nixos on libvirt) for testing purposes right? I think that should be mentioned in the README. Nice shim though.

1 Like

Is the iKnowTheRisks = true option not enough?

I’m using this on my GPD Pocket 4 because only 6.15 has the fixes needed for my GPU.

1 Like

Yeah okay, didn’t see that :laughing: sounds like enough but maybe a link to said risks could be nice?

How does that work? How is a filesystem function dependent on which GPU is used?

How is a filesystem function dependent on which GPU is used?

In order to use the GPU fixes in the latest kernel, I need to run the latest kernel. Which means I need to use the latest ZFS, because an older ZFS is not able to be used with the newer kernel.

1 Like

Nice!

Another suggestion for your future ideas section:

  • a vm test that runs the ZTS from the relevant revision
1 Like

Thanks to emilazy for putting up with a bunch of questions about how ZFS is built in Nixpkgs

She’s the best. Thanks for this flake and work, @matthewcroughan!

3 Likes

Well someone needs to test zfs upfront and not all bugs are reproducible in VMs. I would be concerned about the projects if not even developers of the filesystem would be brave enough to run master on their system.