Development environments with Nix

note, Jun 25, 2023 on Mitja Felicijan's blog

Nix is amazing for making reproducible cross OS development environment.

First you need to install Nix package @@ -32,21 +32,18 @@ usage of Nix shell.


 export PS1="[\033[38;5;9m\]\u@\h\[$(tput sgr0)\]]$(is_inside_nix_shell)\[\033[33m\]\$(parse_git_branch)\[\033[00m\] \w\[$(tput sgr0)\] \n$ "
 

And this is what it looks like when you are in a Nix shell. Otherwise that part -of prompt is omitted

PS1 Prompt

More resources: