Hi,
The only user in /nix/var/nix/profiles/per-user/ is “root”, but none of my two normal users. Where are their profiles and if they are not supposed to show up there, what is supposed to show up there? I have packages installed for them via users.users.auser.packages and imperatively using nix-env.
kind regards
nix-env
stuff is linked in ~/.nix-profile
or such iirc. But also, don’t use nix-env
, even nix profile
would be better.
ok, so as I understand it nix-env and nix profile install to ~/.nix-profile which links to $XDG_STATE_HOME/nix/profiles/profile; but where is the profile for user packages defined in users.user.auser.packages in /etc/nixos/configuration.nix ?
I don’t recall offhand, try running which someprogram
or maybe readlink $(which someprogram)
for a package you configured that way?
Those go into /etc/profiles
, I believe.