mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nix] Install npm packages in the home dir
This commit is contained in:
parent
3afd67e5cd
commit
9b82c68138
3 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue