> error: opening lock file `/nix/var/nix/profiles/default.lock':  
>    / Rickard
Hi Rickard,

can you run strace -o /tmp/file -f nix-env -i ...

If the Nix daemon is used this trace file should not contain any access
to default.lock (my nix-env run didn't contain this line)

So if it does double check that NIX_REMOTE=daemon is exported

This just worked for me in the past. So I may be mistaken.

Also ensure that the directory
/nix/var/nix/profiles exists.

Marc Weber
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to