stockholm/kartei/default.nix

19 lines
460 B
Nix
Raw Normal View History

2022-11-23 17:16:48 +00:00
{ config, lib, ... }: let
removeTemplate =
# TODO don't remove during CI
lib.flip builtins.removeAttrs ["template"];
in {
2022-11-23 16:49:57 +00:00
config =
lib.mkMerge
(lib.mapAttrsToList
(name: _type: let
path = ./. + "/${name}";
in {
krebs = import path { inherit config; };
})
2022-11-23 17:16:48 +00:00
(removeTemplate
(lib.filterAttrs
(_name: type: type == "directory")
(builtins.readDir ./.))));
2022-11-22 19:15:44 +00:00
}