Coming back here to say that Nix for some reason expects a bash derivative for NIX_BUILD_SHELL so zsh doesn’t actually work there. There is a package GitHub - chisui/zsh-nix-shell: zsh plugin that lets you use zsh in nix-shell shells. that helps to some degree. If an alias isn’t out of the question that also works in some instances but not with nix-shell directly. Adding -c <shell> to a nix develop command works, and also just zsh after nix-shell works. Unfortunately no clean way of just using the user’s default shell as of now.
1 Like