summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-07-12 17:53:41 +0200
committertv <tv@krebsco.de>2017-07-12 17:53:41 +0200
commit3928e03762563bb4ff42a5908c241e5b9d88676b (patch)
tree745b0f54a2c2b3a3c52f859f5cb38532f2032b4d /lib
parent6967411053e0bec21edc002a88804e4a7d88ed71 (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 de5f0b4..468fc92 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