[Nix-dev] Multi-user nix-env

Matt Paine mattzerah at gmail.com
Sun Jan 5 12:33:02 CET 2014


Hi. Using the generic binary distribution I got what I thought was a
working multi-user setup for nix on my opensuse connection (abandoning the
rpm). I am not completely sure I have everything setup correctly, but let
me try to outline what I think are the important steps...

1) nix-daemon running as root
2) nix-builders group setup with a bunch of nix-builder-n users (where n is
a number between 1 and 10)
3) /nix/store is owned by root, group as nix-builders
4) user has the environment variable NIX_REMOTE="daemon" set

The following error is occurring....

matt at linux-5ggd:~> nix-env -i hello
installing `hello-2.9'
error: opening lock file `/nix/var/nix/profiles/default.lock': Permission
denied


My assumption would be that nix-env actually wants to create a new profile
for my user in /nix/var/nix/profiles/per-user/matt/

Is this assumption correct? Would it be acceptable to just copy the the
default profile into my user directory and re-run? Any hints?


Thankyou again.
Matt.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140105/c30825ff/attachment.html 


More information about the nix-dev mailing list