Yes. Check `nix-store --gc --print-roots` to see what roots GC respects.

On Fri, Oct 16, 2015 at 10:41 AM, Matthias Beyer <[email protected]>
wrote:

> Oh, yes, nice!
>
> I assume that I can remove persistent environments by removing the
> .drv file, then?
>
> On 16-10-2015 10:38:54, Domen Kožar wrote:
> >
> https://nixos.org/wiki/Development_Environments#Making_a_Persistent_nix-shell_Environment
> >
> > On Fri, Oct 16, 2015 at 10:26 AM, Matthias Beyer <[email protected]>
> > wrote:
> >
> > > Hi,
> > >
> > > what happens to nix-shells if I run nix-collect-garbage?
> > >
> > > For example:
> > >
> > >     nix-shell -p racket
> > >
> > > another terminal:
> > >
> > >     nix-collect-garbage
> > >
> > > is racket now gone in the nix-shell environment or does nix
> > > "magically" find out that this package is in use and doesn't remove
> > > it?
> > >
> > > --
> > > Mit freundlichen Grüßen,
> > > Kind regards,
> > > Matthias Beyer
> > >
> > > Proudly sent with mutt.
> > > Happily signed with gnupg.
> > >
> > > _______________________________________________
> > > nix-dev mailing list
> > > [email protected]
> > > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> > >
> > >
>
> --
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
>
> Proudly sent with mutt.
> Happily signed with gnupg.
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to