20 lines
269 B
Nix
20 lines
269 B
Nix
|
{
|
||
|
modules,
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
let
|
||
|
toModule = file: {
|
||
|
_file = file;
|
||
|
imports = [
|
||
|
(import file {
|
||
|
inherit config pkgs;
|
||
|
lib = import ./mk-ext-lib.nix { inherit config lib pkgs; };
|
||
|
})
|
||
|
];
|
||
|
};
|
||
|
in
|
||
|
map toModule modules
|