3 ms·
I've _tried_ going down this route a couple times, with mixed success. Thus far the best experience has been with [lorelei](https://github.com/shajra/direnv-nix
by Arubis 4y ago
I've _tried_ going down this route a couple times, with mixed success. Thus far the best experience has been with [lorelei](https://github.com/shajra/direnv-nix-lorelei https://github.com/shajra/direnv-nix-lorelei), which does a decent job making Nix and Direnv play nice and being relatively transparent and forgettable once set up.
Still feels like I don't know what's going on under Nix's hood, though. That syntax...
- lijogdfljk 4y agoSome of that functionality is built into Nix/Flakes now.. i believe. Ie i used to use Lorelei but these days i just use Nix and Flakes with Direnv directly. Not sure even how it works, but it works great. But i use Flakes through my entire setup, so i imagine that's why.
- flurie 4y agonix-direnv[1] is pretty seamless and performant once you have direnv installed and set up. I have a devshell flake template that looks similar to theirs. I had an edge case bug that I was dealing with, and they had a release that fixed it shortly after I reported it. [1] https://github.com/nix-community/nix-direnv#flakes-support https://github.com/nix-community/nix-direnv#flakes-support