Hi!

I have started to play with Nix 0.15 on Ubuntu, using the prebuilt AMD64 package for Ubuntu 9.10.

However, I stumbled into some problems when I try to install packages with a normal user. This is what I do:

As root, I start "nix-worker --daemon"

Then, as a normal user I do:

$ source /etc/profile.d/nix.sh
creating /home/rnils/.nix-profile

$ export NIX_REMOTE=daemon

$ nix-channel --add http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable

$ nix-channel --updatedownloading Nix expressions from `http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/nixexprs.tar.bz2'... % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload  Upload   Total   Spent    Left  Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 100 2709k 100 2709k 0 0 4303k 0 --:--:-- --:--:-- --:--:-- 4568k
unpacking channel Nix expressions...
error: creating directory `/nix/var/nix/gcroots/per-user/rnils': Permission denied
cannot unpack the channels at /usr/bin/nix-channel line 128.
Looking at the documentation, I can't find any other steps I need to do in order to get the nix-worker-as-root scenario working. Is the documentation maybe outdated?
Best regards,
  Rickard Nilsson

Attachment: pgpqLkX89OBV0.pgp
Description: PGP Digital Signature

_______________________________________________
nix-dev mailing list
nix-dev@cs.uu.nl
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to