[Nix-dev] nix-env and locking
Nathaniel Griswold
griswold at cs.wisc.edu
Wed Jul 8 18:52:45 CEST 2009
Thanks
>
> Yes. You need write access to the directory containing the profile you're
> changing. This is why in NixOS every user has his own profile directory
> (/nix/var/nix/profiles/per-user/$USER). So you could do something like
>
> (as root)
> $ mkdir /nix/var/nix/profiles/my-profiles
> $ chown ...me... /nix/var/nix/profiles/my-profiles
> (as the normal user)
> $ nix-env --switch-profile /nix/var/nix/profiles/my-profiles/default
>
> --
More information about the nix-dev
mailing list