kartei: autoimport subdirs

This commit is contained in:
tv 2022-11-23 17:49:57 +01:00
parent c345613cf0
commit 5fa371dd93

View File

@ -1,15 +1,13 @@
{ config, lib, ... }: {
config = lib.mkMerge (map (path: { krebs = import path { inherit config; }; }) [
./dbalan
./jeschli
./kmein
./krebs
./lass
./makefu
./mic92
./others
./palo
./rtunreal
./tv
]);
config =
lib.mkMerge
(lib.mapAttrsToList
(name: _type: let
path = ./. + "/${name}";
in {
krebs = import path { inherit config; };
})
(lib.filterAttrs
(_name: type: type == "directory")
(builtins.readDir ./.)));
}