2017-07-06 19:47:47 +00:00
|
|
|
with import <stockholm/lib>;
|
|
|
|
let
|
|
|
|
eval = _file: source: evalModules {
|
|
|
|
modules = singleton {
|
|
|
|
inherit _file;
|
2017-07-12 15:53:41 +00:00
|
|
|
imports = map (source: { inherit source; }) (toList source);
|
2017-07-06 19:47:47 +00:00
|
|
|
options.source = mkOption {
|
|
|
|
type = types.attrsOf types.source;
|
|
|
|
default = {};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
# This function's return value can be used as pkgs.populate input.
|
|
|
|
_file: source: (eval _file source).config.source
|