Files
nix-config/home/base/core/npm.nix
T

15 lines
406 B
Nix

{ config, ... }:
{
# make `npm install -g <pkg>` happey
# npm - set min-release-age(in days) for supply-chain security
home.file.".npmrc".text = ''
prefix=${config.home.homeDirectory}/.npm
min-release-age=2
'';
# pnpm - same supply-chain policy as the npm setting above; its value is in minutes, not days
xdg.configFile."pnpm/config.yaml".text = ''
minimumReleaseAge: 2880
'';
}