[Nix-dev] Re: patch to allow switching profiles

roconnor at theorem.ca roconnor at theorem.ca
Sun Sep 19 19:55:57 CEST 2010


On Sun, 19 Sep 2010, Yury G. Kudryashov wrote:

> roconnor at theorem.ca wrote:
>
>> Here is a patch to allows nix-env -S to actually switch profiles.  Before
>> the patch switch profiles relinks the ~/.nix-profile directory, but
>> because the ~/.nix-profile directory wasn't in the path, this switch
>> didn't really do much.
>>
>> The patch makes me a little nervous because the path is set to
>> ~/.nix-profile, but the directory isn't created until later in
>> /etc/profile.  Still, I think it is an improvement.
> I have ~/.nix-profile -> /nix/var/nix/profiles/per-user/urkud/profile, so
> everything works. What exactly doesn't work for you?

nix-env -S <new-profile>

-- 
Russell O'Connor                                      <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''



More information about the nix-dev mailing list