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
@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
@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
text/gemini
This content has been proxied by September (ba2dc).