mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-04 11:36:20 +01:00
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:
1 parent
89d7a9bd82
commit
af084f1eb4
3 files changed
+34
-2
No files matched your search
@@ -1,9 +1,12 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
nixpkgsConfig,
|
||||
...
|
||||
}:
|
||||
{
|
||||
nixpkgs.config = nixpkgsConfig;
|
||||
|
||||
nix.settings = {
|
||||
# enable flakes globally
|
||||
experimental-features = [
|
||||
|
||||
Reference in new issue
Block a user