mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
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:
1 parent
70d8bd6791
commit
c8bbeb708d
11 files changed
+18
-40
No files matched your search
+7
-10
@@ -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
|
||||
|
||||
Reference in new issue
Block a user