home-managed npmrc

This commit is contained in:
LavaDesu 2021-05-26 21:21:58 +07:00
parent c9f0f903a3
commit 7149166a2f
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 12 additions and 1 deletions

View file

@ -14,7 +14,6 @@
gnupg gnupg
lf lf
neofetch neofetch
nodejs
pavucontrol pavucontrol
osu-lazer osu-lazer
tor-browser-bundle-bin tor-browser-bundle-bin
@ -29,6 +28,7 @@
./alacritty.nix ./alacritty.nix
./neovim.nix ./neovim.nix
./npm.nix
./rofi.nix ./rofi.nix
./zsh.nix ./zsh.nix

9
users/rin/npm.nix Normal file
View file

@ -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
'';
}

View file

@ -111,6 +111,8 @@ in rec {
WINEARCH = "win64"; WINEARCH = "win64";
EDITOR = "nvim"; EDITOR = "nvim";
PATH = "${config.xdg.dataHome}/npm/bin:$PATH";
DIRENV_LOG_FORMAT = "";
}; };
localVariables = { localVariables = {
PS1 = "%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "; PS1 = "%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b ";