summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-07-12 17:53:41 +0200
committerlassulus <lassulus@lassul.us>2017-07-12 19:09:50 +0200
commitbe2a5a88c4914f27571e19ffd73389fc0cb6c3d9 (patch)
tree8f3bcb8ae04e10ef6ef279b6cebd978fbef52693 /lib
parenta03ded0b93077f5d028d6df47aceaee7f28f4847 (diff)
lib.eval-source: allow source to be a list
Diffstat (limited to 'lib')
-rw-r--r--lib/eval-source.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/eval-source.nix b/lib/eval-source.nix
index de5f0b43c..468fc92d1 100644
--- a/lib/eval-source.nix
+++ b/lib/eval-source.nix
@@ -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