diff --git a/modules/home/cli/npm.nix b/modules/home/cli/npm.nix new file mode 100644 index 0000000..33b03f1 --- /dev/null +++ b/modules/home/cli/npm.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: +{ + # npm global packages + # https://nixos.wiki/wiki/Node.js#Using_npm_install_-g_fails + home.sessionPath = [ + "$HOME/.npm-global/bin" + ]; + + home.packages = with pkgs; [ + nodejs + ]; +} diff --git a/modules/home/cli/terminal.nix b/modules/home/cli/terminal.nix index 0652001..32030f5 100644 --- a/modules/home/cli/terminal.nix +++ b/modules/home/cli/terminal.nix @@ -39,7 +39,6 @@ in uv # For running Python stuff quickly. # AI - gemini-cli google-cloud-sdk # Publishing diff --git a/modules/home/default.nix b/modules/home/default.nix index 2c34354..ed4a5e5 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -11,6 +11,7 @@ ./cli/direnv.nix # ./cli/zellij.nix ./cli/just.nix + ./cli/npm.nix ./services/ttyd.nix ]; }