mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(submodules): alias submodule args to
This commit is contained in:
parent
50abd446c4
commit
dad2915c44
1 changed files with 6 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ in {
|
|||
submodules.instances = mkOption {
|
||||
description = "Attribute set of submodule instances";
|
||||
default = {};
|
||||
type = types.attrsOf (types.submodule ({name, config, ...}: let
|
||||
type = types.attrsOf (types.submodule ({name, config, options, ...}: let
|
||||
# submodule associated with
|
||||
submodule = findSubmodule {
|
||||
name = config.submodule;
|
||||
|
|
@ -245,9 +245,14 @@ in {
|
|||
_module.args.pkgs = pkgs;
|
||||
_module.args.name = config.name;
|
||||
_module.args.submodule = config;
|
||||
submodule.args = mkAliasDefinitions options.args;
|
||||
}) specialArgs;
|
||||
default = {};
|
||||
};
|
||||
|
||||
args = mkOption {
|
||||
description = "Submodule arguments (alias of config.submodule.args)";
|
||||
};
|
||||
};
|
||||
}));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue