blob: 7624807a045f52c092d5a450a2cec97751fdf1ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{ lib, ... }@arg: let
removeTemplate =
# TODO don't remove during CI
lib.flip builtins.removeAttrs ["template"];
in {
imports =
(lib.mapAttrsToList
(name: _type: let
path = ./. + "/${name}";
in {
_file = toString path;
krebs = import path arg;
})
(removeTemplate
(lib.filterAttrs
(_name: type: type == "directory")
(builtins.readDir ./.))));
}
|