add anki and npm global path

This commit is contained in:
Thilo Billerbeck 2023-10-04 02:09:37 +02:00
parent 221b97343d
commit 54dd4444fc
2 changed files with 4 additions and 0 deletions

View file

@ -105,6 +105,7 @@ in {
quickemu quickemu
quickgui quickgui
trilium-desktop trilium-desktop
anki
] else [ ]) ++ (if config.machine.isGnome then [ ] else [ ]) ++ (if config.machine.isGnome then [
gnomeExtensions.blur-my-shell gnomeExtensions.blur-my-shell
gnomeExtensions.dash-to-panel gnomeExtensions.dash-to-panel

View file

@ -45,6 +45,9 @@ in {
}; };
initExtra = '' initExtra = ''
eval $(${pkgs.thefuck}/bin/thefuck --alias) eval $(${pkgs.thefuck}/bin/thefuck --alias)
[ -d ~/.npm-global ] || mkdir ~/.npm-global
${pkgs.nodejs}/bin/npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
''; '';
}; };
} }