Stream: beginners

Topic: nix / direnv


view this post on Zulip Patrick Kilgore (Jun 22 2022 at 21:29):

I get an infinite loop of shells using direnv + nix develop. Anyone have a preferred way of avoiding this? use flake? use nix?

view this post on Zulip Ayaz Hafiz (Jun 22 2022 at 23:03):

I have a direnv with “use flake” set and haven’t run into infinite loops. can you record what you’re seeing?

view this post on Zulip Patrick Kilgore (Jun 23 2022 at 00:24):

@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!

view this post on Zulip Ricardo Valero de la Rosa (Jan 11 2024 at 21:19):

Do I need --impure?

When using roc with nix flakes and direnv is it necessary to have in .envrc:

use flake . --impure;

view this post on Zulip Brendan Hansknecht (Jan 12 2024 at 00:42):

I don't use It with --impure and It seems to work just fine.

view this post on Zulip Brendan Hansknecht (Jan 12 2024 at 00:42):

Though on Linux sometime, I get annoyances related to system vs nix glibc versions

view this post on Zulip Brendan Hansknecht (Jan 12 2024 at 00:43):

So anything built in nix can't be used outside of nix

view this post on Zulip Brendan Hansknecht (Jan 12 2024 at 00:43):

Not sure if --impure would fix that.


Last updated: Jul 06 2025 at 12:14 UTC