I get an infinite loop of shells using direnv + nix develop. Anyone have a preferred way of avoiding this? use flake? use nix?
I have a direnv with “use flake” set and haven’t run into infinite loops. can you record what you’re seeing?
@Ayaz Hafiz I'll use that then. I'm unfamiliar with nix, so I just dropped nix develop into the .envrc -- I found use flake later in the docs but wasn't sure if that was the same thing. I'll stick w/ use flake. Thanks!
Do I need --impure?
When using roc with nix flakes and direnv is it necessary to have in .envrc:
use flake . --impure;
I don't use It with --impure and It seems to work just fine.
Though on Linux sometime, I get annoyances related to system vs nix glibc versions
So anything built in nix can't be used outside of nix
Not sure if --impure would fix that.
Last updated: Nov 09 2025 at 12:14 UTC