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
/Users/ztlevi/Users/ztlevi/.config/zsh

ztlevi/.config/zsh
➜ 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 https://github.com/ztlevi/nix-dotfiles/blob/f053169c2d87a45757a460b5d2616470d7163f94/options.nix#L71-L86

Thanks!

There was a change to relDotDir https://github.com/nix-community/home-manager/blob/e7d5531cfa770afc591f8dc5542eb4fba9962885/modules/programs/zsh.nix#L9 “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

Thanks!

I doubt that I would need to change the home.stateVersion since it’s documented https://github.com/nix-community/home-manager/blob/e7d5531cfa770afc591f8dc5542eb4fba9962885/modules/misc/version.nix.

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?