home-managed npmrc
This commit is contained in:
parent
c9f0f903a3
commit
7149166a2f
3 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
9
users/rin/npm.nix
Normal file
9
users/rin/npm.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
|
|
@ -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 ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue