From 3928e03762563bb4ff42a5908c241e5b9d88676b Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 12 Jul 2017 17:53:41 +0200 Subject: lib.eval-source: allow source to be a list --- lib/eval-source.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3