Source flake file

Hey everyone,

I tried to look online but couldn’t find a way to source a flake.nix file, so I don’t know if it’s possible.

What I mean by that is, let’s say I am working on a project, I will create a flake file with nix flake init, and I will add my deps in there.

I can then run nix develop to access to deps.

But it’s very annoying to exit this session whenever I add a new script / dep.

So I wondering if there is a way to relauch the session without exiting the current one.

Thanks in advance :slight_smile:

Enable direnv, echo 'use flake' > .envrc; direnv allow in your project folder, and configure your editor to use whatever respective direnv extension.

1 Like

Nice, Thanks for the recommendation