Add working flake.nix and flake.lock for Nix support.
Also, add .DS_Store to .gitignore because macOS...
Let me know if you need any adjustments or have any questions!
@microsoft-github-policy-service agree
I believe this is something that belongs into https://github.com/nix-community. None of us maintainers use Nix and thus don't feel comfortable maintaining this. I apologize if this is disappointing. 😢
@lhecker Totally understood — thanks for the reply.
Just a brief PSA from the Nix trenches, though, in case it’s useful for future context:
-
With this flake.nix, I was able to build and run the project locally using nothing but
nix run. No Node installs, no npm install, no side effects. It "just works." -
The flake locks everything down — not just now, but (in theory) forever. It’s reproducible even across machines and time. On macOS, I run it through nix-darwin (you can get nix as an overlay for any Linux btw), and it’s still close enough to the metal to maintain the same guarantee.
-
This is the minimal groundwork for getting the project into nixpkgs, and it’s one config line away from being globally installed in any Nix environment.
-
Maintenance is trivial: bump the lockfile once in a blue moon. Someone in the community usually volunteers for that anyway.
-
It took me a decade to come around to Nix. Now I’d sooner give up caffeine than go back. Worth revisiting when the team has bandwidth.
Appreciate the thoughtful close, regardless.