diff --git a/users/rin/home.nix b/users/rin/home.nix index bdff61d..a50f8a4 100644 --- a/users/rin/home.nix +++ b/users/rin/home.nix @@ -14,7 +14,6 @@ gnupg lf neofetch - nodejs pavucontrol osu-lazer tor-browser-bundle-bin @@ -29,6 +28,7 @@ ./alacritty.nix ./neovim.nix + ./npm.nix ./rofi.nix ./zsh.nix diff --git a/users/rin/npm.nix b/users/rin/npm.nix new file mode 100644 index 0000000..c37b3a1 --- /dev/null +++ b/users/rin/npm.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: { + home.packages = [ pkgs.nodejs ]; + + home.file.".npmrc".text = '' + cache=${config.xdg.dataHome}/npm/cache + prefix=${config.xdg.dataHome}/npm + store-dir=${config.xdg.dataHome}/npm/pnpm-store + ''; +} diff --git a/users/rin/zsh.nix b/users/rin/zsh.nix index e925ced..71f10f4 100644 --- a/users/rin/zsh.nix +++ b/users/rin/zsh.nix @@ -111,6 +111,8 @@ in rec { WINEARCH = "win64"; EDITOR = "nvim"; + PATH = "${config.xdg.dataHome}/npm/bin:$PATH"; + DIRENV_LOG_FORMAT = ""; }; localVariables = { PS1 = "%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b ";