{ config, ... }: { # make `npm install -g ` 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 ''; }