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

20 lines
269 B
Nix
Raw Normal View History

2024-05-28 01:15:28 -07:00
{
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