Merge pull request #121870 from Pacman99/pass-specialargs
lib/modules: pass specialArgs to modules
This commit is contained in:
commit
0633b6aa74
2 changed files with 3 additions and 3 deletions
|
@ -128,7 +128,7 @@ rec {
|
|||
let collected = collectModules
|
||||
(specialArgs.modulesPath or "")
|
||||
(modules ++ [ internalModule ])
|
||||
({ inherit lib options config; } // specialArgs);
|
||||
({ inherit lib options config specialArgs; } // specialArgs);
|
||||
in mergeModules prefix (reverseList collected);
|
||||
|
||||
options = merged.matchedOptions;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, modules, baseModules, ... }:
|
||||
{ config, lib, pkgs, modules, baseModules, specialArgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
@ -13,7 +13,7 @@ let
|
|||
# !!! fix this
|
||||
children = mapAttrs (childName: childConfig:
|
||||
(import ../../../lib/eval-config.nix {
|
||||
inherit baseModules;
|
||||
inherit baseModules specialArgs;
|
||||
system = config.nixpkgs.initialSystem;
|
||||
modules =
|
||||
(optionals childConfig.inheritParentConfig modules)
|
||||
|
|
Loading…
Reference in a new issue