summaryrefslogtreecommitdiffstats
path: root/kartei/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-11-23 18:16:48 +0100
committertv <tv@krebsco.de>2022-11-23 19:15:49 +0100
commitb065ee81dc5e153d1f16a168db82b4eb7bfb2850 (patch)
tree6d6d7f37e9dc0cadb9da9b97840d48399e6f2be5 /kartei/default.nix
parent5fa371dd9327f2b5cd4e97df6a6409e38fc53e85 (diff)
kartei: add template
Diffstat (limited to 'kartei/default.nix')
-rw-r--r--kartei/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/kartei/default.nix b/kartei/default.nix
index 3b86250db..6024e2351 100644
--- a/kartei/default.nix
+++ b/kartei/default.nix
@@ -1,4 +1,8 @@
-{ config, lib, ... }: {
+{ config, lib, ... }: let
+ removeTemplate =
+ # TODO don't remove during CI
+ lib.flip builtins.removeAttrs ["template"];
+in {
config =
lib.mkMerge
(lib.mapAttrsToList
@@ -7,7 +11,8 @@
in {
krebs = import path { inherit config; };
})
- (lib.filterAttrs
- (_name: type: type == "directory")
- (builtins.readDir ./.)));
+ (removeTemplate
+ (lib.filterAttrs
+ (_name: type: type == "directory")
+ (builtins.readDir ./.))));
}