error:
… while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'home-manager-generation'
whose name attribute is located at /nix/store/xwc3zfc544jg6zhr0wi6k8253s7mwlhi-source/pkgs/stdenv/generic/make-derivation.nix:353:7
… while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
at /nix/store/xwc3zfc544jg6zhr0wi6k8253s7mwlhi-source/pkgs/build-support/trivial-builders/default.nix:98:16:
97| enableParallelBuilding = true;
98| inherit buildCommand name;
| ^
99| passAsFile = [ "buildCommand" ]
(stack trace truncated; use '--show-trace' to show the full trace)
error: getting status of '/nix/store/9msmqj7psvxw04x8vci1nlfk9cinbk70-source/modules/home/p10k.zsh': No such file or directory
error: getting status of ‘/nix/store/v4935803w9455zly212cx01ylhsl9fjl-source/modules/home/p10k-config’: No such file or directory
Not sure how to create that p10k-config directory in home.
With powerlevel10k generator it is putting p10k.zsh in home directory, and at least it works fine. Just want to move that config into not existent p10k-config directory.
There may be some other helpful bits in that module for you as well. Getting zsh, oh-my-zsh, and p10k to play nicely was a bit finicky at first.
Hope that helps!
That’s telling you that the path you provided is incorrect.
The snippet I posted is from my own nix-config so you will have to edit to match your own paths and naming.
Looks like where I have src = ./p10k; you will need to put src = ./p10k-config;
Hmmm, you shouldn’t have to create the file in the nix-store yourself.
The src and file options specified in the plugin expression will tell nixos to where find your p10k.zsh file and it will move them to the store for you when you build the config.
This is a snippet from your zsh.nix in the original post, which is why I assumed you had a p10k-config directory:
You’ll need to update the src value to be the path to where your p10k.zsh file is located. The path your specify needs to be relative to wherever you have your zsh.nix file is located.
For example, let’s say you have your zsh.nix in home/mee/nix-config/zsh.nix, the src for that plugin would be ../dotfiles and nixos would look for your specified p10k.zsh file at that location.
Hopefully that helps.
Also, you may not need to reinstall. Selecting a previous generation on reboot will allow you to ‘rollback’ to a build prior to your nix-store getting messed up.
Thank you for explanation. That will definitely help me, once I’ll figure out how to properly install home manager in NixOS. I’ve also tried without that directory and something was really messed up.
The p10k configuration wizard complains that it can’t write to ~/.zshrc, but I believe all it really wants to do is to add a line souring the ~/.p10k.zsh - file to which it can write freely.
If the file doesn’t exists there is no issue, the wizard runs the first time you open zsh. At the very end the option to append .zshrc won’t be there, but the second option will be akin to “I understand and I will deal with it manually myself”, which still saves config to the .p10k.zsh file. So we deal with it manually simply by using programs.zsh.initExtra.