I’m new to NixOS and am getting a strange error when trying to install packages as a normal user. I created a normal user account, but when trying to use nix-env to install packages as that user it seems to be trying to open the root user’s nix profile:
$ nix-env -iA nixos.hello
error: opening lock file ‘/nix/var/nix/profiles/per-user/root/profile.lock’: Permission denied
Any idea why this is happening?