rose-pine-nix/modules/lib/import-modules.nix

19 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