summaryrefslogtreecommitdiffstats
path: root/kartei
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-11-23 17:49:57 +0100
committertv <tv@krebsco.de>2022-11-23 19:15:49 +0100
commit5fa371dd9327f2b5cd4e97df6a6409e38fc53e85 (patch)
tree3bad4bb46bce7627798224de98dfa62fdc5b2122 /kartei
parentc345613cf0868c7835821f395aacdc0d135557c7 (diff)
kartei: autoimport subdirs
Diffstat (limited to 'kartei')
-rw-r--r--kartei/default.nix24
1 files changed, 11 insertions, 13 deletions
diff --git a/kartei/default.nix b/kartei/default.nix
index 1b11f0fd5..3b86250db 100644
--- a/kartei/default.nix
+++ b/kartei/default.nix
@@ -1,15 +1,13 @@
{ config, lib, ... }: {
- config = lib.mkMerge (map (path: { krebs = import path { inherit config; }; }) [
- ./dbalan
- ./jeschli
- ./kmein
- ./krebs
- ./lass
- ./makefu
- ./mic92
- ./others
- ./palo
- ./rtunreal
- ./tv
- ]);
+ config =
+ lib.mkMerge
+ (lib.mapAttrsToList
+ (name: _type: let
+ path = ./. + "/${name}";
+ in {
+ krebs = import path { inherit config; };
+ })
+ (lib.filterAttrs
+ (_name: type: type == "directory")
+ (builtins.readDir ./.)));
}