feat(npm): use npmmirror for npm fetches

Set the user-level npm/pnpm registry to npmmirror, and make Nix builds use the same mirror through nixpkgs' npmRegistryOverrides and rewriteURL. The configured Nixpkgs policy is also applied to myNurPkgs and Colmena's nodeNixpkgs so NUR packages such as dsh use the mirror while preserving Colmena parity.
This commit is contained in:
Ryan Yin committed 2026-11-01 16:57:57 +08:00
1 parent 89d7a9bd82
commit af084f1eb4
3 files changed
+34 -2

No files matched your search

+3
View File
@@ -1,9 +1,12 @@
{
pkgs,
config,
nixpkgsConfig,
...
}:
{
nixpkgs.config = nixpkgsConfig;
nix.settings = {
# enable flakes globally
experimental-features = [