NixOS/home/programs/node.nix

17 lines
296 B
Nix

{ pkgs, config, ... }:
{
home.packages = with pkgs.nodePackages_latest; [
nodejs
pnpm
prettier
];
home.sessionPath = [ "${config.home.homeDirectory}/.local/npm/bin" ];
home.file.".npmrc".text =
# ini
''
prefix=${config.home.homeDirectory}/.local/npm
'';
}