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
|
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
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";
|
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 ";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue