P10k + nix-shell

Is there a way to make p10k indicate current nix-shell. For example when entering shell for dev on the p10k bar there will be “dev”. I am using zsh + oh-my-zsh.

p10k already consideres IN_NIX_SHELL and display info based on it in the prompt.

At least this is default behaviour:

image

I do not understand your “for dev” part though.

Thank you, I didn’t realize this was because of shell.