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