[Nix-dev] nix-env and locking

Nathaniel Griswold griswold at cs.wisc.edu
Wed Jul 8 00:40:03 CEST 2009


Hi,

What is the proper way to allow users to create their own profiles in
gc-managed locations?

I tried a simple root-run nix-worker setup, but nix-env is still
complaining about access to /nix/var/nix/profiles. Does locking not go
through the daemon, and if so is this intentional?

[griswold at somehost nmi-nix]$ env |grep NIX_REMOTE
NIX_REMOTE=daemon

[griswold at somehost nmi-nix]$ nix-env -f ./default.nix -i gawk
replacing old `gawk-3.1.6'
installing `gawk-3.1.6'
error: opening lock file `/nix/var/nix/profiles/default.lock': Permission denied

Thank you!

-nate



More information about the nix-dev mailing list