diff options
Diffstat (limited to 'kartei/default.nix')
-rw-r--r-- | kartei/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kartei/default.nix b/kartei/default.nix new file mode 100644 index 000000000..6024e2351 --- /dev/null +++ b/kartei/default.nix @@ -0,0 +1,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 ./.)))); +} |