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

Yury G. Kudryashov urkud+nix at ya.ru
Sun Sep 19 18:35:08 CEST 2010


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?




More information about the nix-dev mailing list