Ancestors

Written by binaryphile on 2025-01-24 at 18:41

Say, is there anyone in my network who knows how #NixFlakes work? I'm struggling getting a nix flake with my nodejs development environment for linux and macos to run quickly on mac. It takes about 1.6 seconds to fire up nix develop on linux (already too long) but 6.4 seconds on mac.

[#]Nix #NixOS

=> More informations about this toot | More toots from binaryphile@fosstodon.org

Toot

Written by Brian May 🐧 on 2025-01-24 at 20:48

@binaryphile nix is not a fast language. It can be frustrating slow at times. See projects like TVIX https://tvl.fyi/blog/rewriting-nix that claims to get to address this problem (still early stages afaik).

You can use direnv to cache the environment so it doesn't have to be evaluated every time. See https://www.danielcorin.com/til/nix/nix-and-direnv-with-flakes/ for example.

=> More informations about this toot | More toots from penguin_brian@hachyderm.io

Descendants

Written by binaryphile on 2025-01-24 at 21:38

@penguin_brian Thanks for the link, that was an interesting read. Good to see a similar flake to the one I was using, that means I'm probably not too far off the beaten path.

=> More informations about this toot | More toots from binaryphile@fosstodon.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113885296684843746
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
266.380715 milliseconds
Gemini-to-HTML Time
0.370861 milliseconds

This content has been proxied by September (ba2dc).