lib/modules: Add _module.specialArgs

This commit is contained in:
Robert Hensing 2022-07-12 14:33:10 +02:00
parent 5f43d8b088
commit bf5b75864d

View file

@ -266,6 +266,15 @@ rec {
turned off. 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 = { config = {
@ -273,6 +282,7 @@ rec {
inherit extendModules; inherit extendModules;
moduleType = type; moduleType = type;
}; };
_module.specialArgs = specialArgs;
}; };
}; };