From 9b82c68138c683e20b4eae525998a63868669a0a Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Fri, 9 Jun 2023 23:04:58 +0200 Subject: [PATCH] [nix] Install npm packages in the home dir --- common/hellcooling/install.sh | 0 nix/hosts/alymac/default.nix | 4 ++++ nix/hosts/alymac/zsh.nix | 2 ++ 3 files changed, 6 insertions(+) delete mode 100644 common/hellcooling/install.sh diff --git a/common/hellcooling/install.sh b/common/hellcooling/install.sh deleted file mode 100644 index e69de29..0000000 diff --git a/nix/hosts/alymac/default.nix b/nix/hosts/alymac/default.nix index 7e59126..d0d85bf 100644 --- a/nix/hosts/alymac/default.nix +++ b/nix/hosts/alymac/default.nix @@ -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 diff --git a/nix/hosts/alymac/zsh.nix b/nix/hosts/alymac/zsh.nix index 555273a..46b4a1b 100644 --- a/nix/hosts/alymac/zsh.nix +++ b/nix/hosts/alymac/zsh.nix @@ -6,6 +6,8 @@ initExtra = '' export GPG_TTY=$(tty) source ${dotfiles}/zsh/zshrc + + export PATH="$PATH:$HOME/.npm-packages/bin" ''; }; }