Per-user packages fail to install with altered user.name

Hello,

trying get a fix for this.

https://github.com/NixOS/nixpkgs/issues/107353#issuecomment-763094993

one part of the solution works… but the

++ map (user: "/etc/profiles/per-user/${user.name}")

also need to be applied to

environment.etc

too, it’s an interesting little problem, also my nix foo at this point is not strong enough (yet).

The environment.profiles was fine as the further comments suggest – only the environment.etc needs to be corrected. There is a pull request to fix this properly: nixos/users: use proper name for per-user packages by 4z3 · Pull Request #110627 · NixOS/nixpkgs · GitHub

yep, it’s fixed… now to get it committed… which is another road to run.

I like nix, things gets fixed.