[Nix-dev] Nix profiles
Richard Wallace
rwallace at thewallacepack.net
Tue Oct 30 21:50:56 CET 2012
I would have tried that, but after switching to a new profile none of
the nix commands were available. I installed using the generic x86_64
tarball, which apparently means that they are installed in the nix
store. So when I switched to a non existent profile, I no longer had
access to them.
On Tue, Oct 30, 2012 at 1:47 PM, Shea Levy <shea at shealevy.com> wrote:
> 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