diff --git a/shell.nix b/shell.nix index e0be5a8..1982705 100644 --- a/shell.nix +++ b/shell.nix @@ -18,6 +18,9 @@ pkgs.mkShell { # Install nvm postShellHooks = '' - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${nvmVersion}/install.sh | bash + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion ''; }