diff options
author | Robert Hensing <robert@roberthensing.nl> | 2021-11-22 14:39:10 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2021-11-22 16:50:50 +0100 |
commit | d464ccfdd9e101d4f5a112ab58d91ccbb912524a (patch) | |
tree | 2e2e45996c8bcaf13baeb01c681fa50001226d65 /lib/modules.nix | |
parent | 426ab31fdeb828886c22ec0e561eca2b90b84b94 (diff) | |
download | nixpkgs-d464ccfdd9e101d4f5a112ab58d91ccbb912524a.tar nixpkgs-d464ccfdd9e101d4f5a112ab58d91ccbb912524a.tar.gz nixpkgs-d464ccfdd9e101d4f5a112ab58d91ccbb912524a.tar.bz2 nixpkgs-d464ccfdd9e101d4f5a112ab58d91ccbb912524a.tar.lz nixpkgs-d464ccfdd9e101d4f5a112ab58d91ccbb912524a.tar.xz nixpkgs-d464ccfdd9e101d4f5a112ab58d91ccbb912524a.tar.zst nixpkgs-d464ccfdd9e101d4f5a112ab58d91ccbb912524a.zip |
modules: Add moduleType to module arguments
Diffstat (limited to 'lib/modules.nix')
-rw-r--r-- | lib/modules.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/modules.nix b/lib/modules.nix index b381487f68e..2468b6fbdd2 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -62,6 +62,8 @@ rec { ‘type’: A module system type representing the module set as a submodule, to be extended by configuration from the containing module set. + This is also available as the module argument ‘moduleType’. + ‘extendModules’: A function similar to ‘evalModules’ but building on top of the module set. Its arguments, ‘modules’ and ‘specialArgs’ are added to the existing values. @@ -148,6 +150,7 @@ rec { config = { _module.args = { inherit extendModules; + moduleType = type; } // args; }; }; |