From f5c92e3ad50bc6ac7560f090de39efcb63aef35a Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 29 Nov 2025 14:43:36 -0500 Subject: [PATCH] npm --- modules/home/cli/npm.nix | 12 ++++++++++++ modules/home/cli/terminal.nix | 1 - modules/home/default.nix | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 modules/home/cli/npm.nix 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 ]; }