Hi!
In the the nix manual (sec 3.4.1 Single-user mode) suggests to chown the
store to normal user account.
However, in the present nix version, /etc/profile.d/nix.sh uses the
following logic to set NIX_REMOTE
# Set up secure multi-user builds: non-root users build through the
# Nix daemon.
if test "$USER" != root; then
export NIX_REMOTE=daemon
else
unset NIX_REMOTE
fi
As a consequence, those that want to setup nix as unprivileged user needs
to issue
unset NIX_REMOTE
otherwise the get a pretty indecipherable error like
cannot connect to daemon at `/nix/var/nix/daemon-socket/socket': No such
file or directory at
/nix/store/rxaasfq7k5lr4mxvp3wcc0lg3z0iasbw-nix-1.1/bin/nix-prefetch-url
line 100.
I suggest to update the documentation or to change the behavior for setting
NIX_REMOTE in nix.sh.
Marco
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev