mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-18 05:37:21 +02:00
feat: npmrc min-release-age
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
# make `npm install -g <pkg>` happey
|
||||
#
|
||||
# mainly used to install npm packages that updates frequently
|
||||
# such as opencode, codex, etc.
|
||||
# 1. make `npm install -g <pkg>` happey
|
||||
# 2. set min-release-age for security
|
||||
home.file.".npmrc".text = ''
|
||||
prefix=${config.home.homeDirectory}/.npm
|
||||
min-release-age=7
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user