summaryrefslogtreecommitdiffstats
path: root/kartei/default.nix
blob: 6024e23514249c3a98f0c8d20bdc53891e47c8bc (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; };
        })
        (removeTemplate
          (lib.filterAttrs
            (_name: type: type == "directory")
            (builtins.readDir ./.))));
}