refactor(overlays): get NUR packages from the nur-ryan4yin overlay

myNurPkgs evaluated a second nixpkgs just for four packages. Apply the
NUR repo's own overlay instead, so they come from the host's pkgs.

Darwin's pkgs now gets nixpkgsConfig too: it set nixpkgs.pkgs, which
ignores nixpkgs.config, so only myNurPkgs carried the npm mirror there.

Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
Ryan Yin authored and ryan4yin | 二花 committed 2026-11-01 11:55:14 -06:00
1 parent 70d8bd6791
commit c8bbeb708d
11 files changed
+18 -40

No files matched your search

+7 -10
View File
@@ -17,16 +17,13 @@ nix-darwin.lib.darwinSystem {
modules =
darwin-modules
++ [
(
{ lib, ... }:
{
nixpkgs.pkgs = import nixpkgs-darwin {
inherit system; # refer the `system` parameter form outer scope recursively
# To use chrome, we need to allow the installation of non-free software
config.allowUnfree = true;
};
}
)
{
nixpkgs.pkgs = import nixpkgs-darwin {
inherit system; # refer the `system` parameter form outer scope recursively
# `nixpkgs.config` is ignored once `nixpkgs.pkgs` is set.
config = specialArgs.nixpkgsConfig;
};
}
]
++ (lib.optionals ((lib.lists.length home-modules) > 0) [
home-manager.darwinModules.home-manager