summaryrefslogtreecommitdiffstats
path: root/kartei/default.nix
blob: 046efdd7bb8325e726650f940f868ec418042448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, ... }: let
  removeTemplate =
    # TODO don't remove during CI
    lib.flip builtins.removeAttrs ["template"];
in {
  config =
    lib.mkMerge
      (lib.mapAttrsToList
        (name: _type: let
          path = ./. + "/${name}";
        in {
          krebs = import path { inherit config lib; };
        })
        (removeTemplate
          (lib.filterAttrs
            (_name: type: type == "directory")
            (builtins.readDir ./.))));
}