mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
lib/modules: Add _module.specialArgs
This commit is contained in:
parent
5f43d8b088
commit
bf5b75864d
1 changed files with 10 additions and 0 deletions
|
@ -266,6 +266,15 @@ rec {
|
|||
turned off.
|
||||
'';
|
||||
};
|
||||
|
||||
_module.specialArgs = mkOption {
|
||||
readOnly = true;
|
||||
internal = true;
|
||||
description = ''
|
||||
Externally provided module arguments that can't be modified from
|
||||
within a configuration, but can be used in module imports.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
|
@ -273,6 +282,7 @@ rec {
|
|||
inherit extendModules;
|
||||
moduleType = type;
|
||||
};
|
||||
_module.specialArgs = specialArgs;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue