[Nix-dev] Nix profiles

Shea Levy shea at shealevy.com
Tue Oct 30 21:47:19 CET 2012


On 10/30/2012 04:34 PM, Richard Wallace wrote:
> I'm still trying to get to grips with a few things about nix, but it's
> getting much clearer and I definitely like what I see so far.
>
> My next question is about profile management.  There is `nix-env
> --switch-profile` to switch from one profile to another, but I don't
> see a way to list available profiles or create new ones.  The latter
> one is the more puzzling.  Finding profiles can be done by looking in
> the /nix/var/nix/profiles/ directory.  But I have no idea how to
> create new profiles.  I thought maybe if I used `nix-env
> --switch-profile /nix/var/nix/profiles/new-profile` I would be in a
> new profile (maybe clean, maybe based on the one I was switching from)
> and could start adding packages.  Unfortunately, that just created a
> link from ~/.nix-profile to a non-existent directory.

I'm not certain of this, but did you try installing something after 
doing a switch-profile to a non-existent profile? I think that will 
create the first generation of it.

> How do you go about creating new profiles with nix?
>
> Thanks,
> Rich
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev



More information about the nix-dev mailing list