diff options
author | tv <tv@krebsco.de> | 2017-07-12 17:53:41 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-07-12 19:09:50 +0200 |
commit | 4698c7733b63bc12072e7a2b29e870c459cf629c (patch) | |
tree | 62b847c625bad4399aba7de8f1a9f468f57c532c /lib/eval-source.nix | |
parent | 41d65979c5fa248ba787bc0702cd58e2296088d2 (diff) |
lib.eval-source: allow source to be a list
Diffstat (limited to 'lib/eval-source.nix')
-rw-r--r-- | lib/eval-source.nix | 4 |
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 |