Whereas the config is just the single .p10k.zsh which was generated with the wizard once. I’m planning to fiddle with it later, but there are more important things to do
If you don’t use home-manager, but the theme is linked from your profile (as it looks like from your screenshot), just add that to your fpath.
I’m not using home manager, so I’ve added the theme to my fpath, but for setting the ZSH_THEME variable it looks like it is looking under the $ZSH/themes/$ZSH_THEME
This means even if I set the theme to be an absolute path or to the powerlevel10k theme, it just gives me an error saying no such file or directory: /home/<username>/.nix-profile/share/oh-my-zsh/themes/powerlevel10k
Hm, seems as if I missremembered things regarding ZSH, themes and the fpath…
Then I do see 2 possibilities left.
Softlink to the themes location in your profile
Don’t use ZSH_THEME but source the file directly.
(PS: home-manager does basically a mix of both. The p10k files are linked from within my .config/zsh folder into the nix-store for discoverability, though still sourced from the zshrc.
That is not a path literal, thats a string, that can be coerced into an absolute path under some circumstances.
Either way, absolute pathes are bad for reproducibility. You should make sure that the p10k config actually becomes part of your configuration, and lies at a place thats easily discoverable/referable from the nix file. Preferably a sibling.
Right, that’s very bad for reproducibility, but the only way to make it reproducible is to include the contents of zsh-p10k.zsh into the home.nix file, but that’s not pretty, either. Another way is to push it to a repo of my own on github?