[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 = {
packages = packageSets.everything;
file.".npmrc".text = ''
prefix = ''${HOME}/.npm-packages
'';
};
# DO NOT CHANGE UNLESS YOU ARE ABSOLUTELY SURE ALL STATE AFFECTED BY THIS

View File

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