lib.eval-source: allow source to be a list
This commit is contained in:
parent
cc4b146ff6
commit
41306a7f77
|
@ -3,13 +3,11 @@ let
|
||||||
eval = _file: source: evalModules {
|
eval = _file: source: evalModules {
|
||||||
modules = singleton {
|
modules = singleton {
|
||||||
inherit _file;
|
inherit _file;
|
||||||
|
imports = map (source: { inherit source; }) (toList source);
|
||||||
options.source = mkOption {
|
options.source = mkOption {
|
||||||
type = types.attrsOf types.source;
|
type = types.attrsOf types.source;
|
||||||
default = {};
|
default = {};
|
||||||
};
|
};
|
||||||
config = {
|
|
||||||
inherit source;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue