kartei: autoimport subdirs
This commit is contained in:
parent
c345613cf0
commit
5fa371dd93
@ -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 ./.)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user