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