Recommended Nix template for zig development?

Anyone else use Nix flake-based development environments? I am curious to see how others approach this, maybe I can improve my own setup!

I use it to manage both my zig versions as well as my development environment. I essentially use Mitchell Hashimoto’s overlay and build ZLS from scratch with the specified zig version. Seems to work.

My best go as a Nix novice:

I’ve never used flakes before. I use nix-shell with these two lines:

    hardeningDisable = [ "all" ];
    buildInputs = [ cmake ];