mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
feat: npmrc min-release-age
This commit is contained in:
1 parent
551020e0e8
commit
fb1d8118e3
1 file changed
+3
-4
@@ -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