Why is my home-manager xdg config placed wrong directory?

This is weird. See the terminal output.

I’m under macos with home-manager.

My home-manager’s home is defined under /Users/ztlevi/Users/ztlevi.

ztlevi/.config/zsh took 2s
➜ pwd

➜ ll
lrwxr-xr-x 100 ztlevi staff 12 Oct 21:18 extra.zshenv -> /nix/store/7pjlbwcvm5wql7cp4lmla6ccqixd0f6q-home-manager-files/Users/ztlevi/.config/zsh/extra.zshenv
lrwxr-xr-x  99 ztlevi staff 12 Oct 21:18 extra.zshrc -> /nix/store/7pjlbwcvm5wql7cp4lmla6ccqixd0f6q-home-manager-files/Users/ztlevi/.config/zsh/extra.zshrc

My home definition is over here dotty-nix/options.nix at f053169c2d87a45757a460b5d2616470d7163f94 · ztlevi/dotty-nix · GitHub


There was a change to relDotDir home-manager/zsh.nix at e7d5531cfa770afc591f8dc5542eb4fba9962885 · nix-community/home-manager · GitHub “recently”. The difference in behavior is controlled by `home.stateVersion = “20.09”; so you may want to search the tracker for that. Or maybe that’s a macos bug :s


I doubt that I would need to change the home.stateVersion since it’s documented home-manager/version.nix at e7d5531cfa770afc591f8dc5542eb4fba9962885 · nix-community/home-manager · GitHub.

I just created an issue in home-manager so that they’re aware of this. home-manager xdg config placed in wrong directory · Issue #1554 · nix-community/home-manager · GitHub

@teto I still didn’t find any solution yet. But I realized I placed my actual config in a different place.

Here is the config I placed:

Do I need to put things in /etc/nixos?