Nix develop , prevent it from being garbage collected

I want the results of nix develop not to be garbage collected.

Is there a way?

Not nix develop directly, though you can use nix print-dev-env --profile /path/to/profile/to/create to get an implicit GC root.

2 Likes

The --profile flag also works with nix develop.

6 Likes