And enable the flakes option. I don't actually use this on my own projects, but it could be useful for other projects that I contribute to.
This uses nixos-community's version of `use_nix` which allows for persistent shells, and is now compatible with flakes.