mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-10 22:52:41 +02:00
@@ -1,9 +1,14 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
# 1. make `npm install -g <pkg>` happey
|
||||
# 2. set min-release-age(in days) for security
|
||||
# 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
|
||||
'';
|
||||
|
||||
# npm - set min release age (in minutes) for supply-chain security
|
||||
xdg.configFile."pnpm/config.yaml".text = ''
|
||||
minimumReleaseAge: 2880
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user