3 ms·
On its own, it's nice for development for setting stuff like DB URIs, activating Python virtual environments, etc. But I find direnv indispensable for how it c
by rgoulter 4y ago
On its own, it's nice for development for setting stuff like DB URIs, activating Python virtual environments, etc.
But I find direnv indispensable for how it combines with nix (probably asdf would be good enough too) for "project specific tools". -- The convenience here is not having to remember to install tools system wide in order to work on some repository.
- Smaug123 4y agoDoes direnv have an advantage over `nix develop` in that regard?
- rgoulter 4y agoYup: direnv hooks into the shell, so that it adjusts the environment variables / PATH when you `cd` into the directory. (Well, you do need to run `direnv allow` to indicate you trust the `.envrc` file). (Also, `nix develop` drops you into a bash shell, which is annoying coming from fish).
- e3bc54b2 4y agodirenv has integration with old nix shell as well as new nix develop. It also happens to have lot more editor integration that can utilize nix indirectly instead of not having access to nix at all.