[nix] Install npm packages in the home dir

This commit is contained in:
Alyxia Sother 2023-06-09 23:04:58 +02:00
parent 3afd67e5cd
commit 9b82c68138
No known key found for this signature in database
GPG key ID: 01E16C4E775A37E4
3 changed files with 6 additions and 0 deletions

View file

@ -96,6 +96,10 @@ in
home = { home = {
packages = packageSets.everything; packages = packageSets.everything;
file.".npmrc".text = ''
prefix = ''${HOME}/.npm-packages
'';
}; };
# DO NOT CHANGE UNLESS YOU ARE ABSOLUTELY SURE ALL STATE AFFECTED BY THIS # DO NOT CHANGE UNLESS YOU ARE ABSOLUTELY SURE ALL STATE AFFECTED BY THIS

View file

@ -6,6 +6,8 @@
initExtra = '' initExtra = ''
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
source ${dotfiles}/zsh/zshrc source ${dotfiles}/zsh/zshrc
export PATH="$PATH:$HOME/.npm-packages/bin"
''; '';
}; };
} }