Skip to content

Commit

Permalink
fix shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
plebhash committed Apr 29, 2024
1 parent 11fa080 commit 7858407
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ pkgs.mkShell {
pkgs.git
];

# Install nvm
shellHook = ''
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
# Load nvm into shell environment
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
'';

# Install nvm
postShellHooks = ''
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${nvmVersion}/install.sh | bash
'';
}

0 comments on commit 7858407

Please sign in to comment.