edit icon indicating copy to clipboard operation
edit copied to clipboard

Add working flake.nix and flake.lock for Nix support.

Open pmarreck opened this issue 5 months ago • 1 comments

Also, add .DS_Store to .gitignore because macOS...

Let me know if you need any adjustments or have any questions!

pmarreck avatar Jun 26 '25 14:06 pmarreck

@microsoft-github-policy-service agree

pmarreck avatar Jun 26 '25 14:06 pmarreck

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 avatar Jun 30 '25 13:06 lhecker

@lhecker Totally understood — thanks for the reply.

Just a brief PSA from the Nix trenches, though, in case it’s useful for future context:

  1. 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."

  2. 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.

  3. 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.

  4. Maintenance is trivial: bump the lockfile once in a blue moon. Someone in the community usually volunteers for that anyway.

  5. 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.

pmarreck avatar Jul 03 '25 14:07 pmarreck