summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-11-23 16:43:02 +0100
committertv <tv@krebsco.de>2022-11-23 19:15:49 +0100
commit6af959ad44a85b1f89ce347480bf18a46a039571 (patch)
tree64f9f22e491402b9d68f67635ec1d8d2a6bb7b52 /krebs
parent7b4ea4750ea11e2c4d9f95cc09fbcffe32e66064 (diff)
krebs: extract sitemap into separate module
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/default.nix6
-rw-r--r--krebs/3modules/sitemap.nix8
2 files changed, 9 insertions, 5 deletions
diff --git a/krebs/3modules/default.nix b/krebs/3modules/default.nix
index 6c76b48e3..a8cf6c767 100644
--- a/krebs/3modules/default.nix
+++ b/krebs/3modules/default.nix
@@ -49,6 +49,7 @@ let
./secret.nix
./setuid.nix
./shadow.nix
+ ./sitemap.nix
./ssl.nix
./sync-containers.nix
./systemd.nix
@@ -67,11 +68,6 @@ let
api = {
enable = mkEnableOption "krebs";
- sitemap = mkOption {
- default = {};
- type = types.attrsOf types.sitemap.entry;
- };
-
zone-head-config = mkOption {
type = with types; attrsOf str;
description = ''
diff --git a/krebs/3modules/sitemap.nix b/krebs/3modules/sitemap.nix
new file mode 100644
index 000000000..ec2179db1
--- /dev/null
+++ b/krebs/3modules/sitemap.nix
@@ -0,0 +1,8 @@
+let
+ lib = import ../../lib;
+in {
+ options.krebs.sitemap = lib.mkOption {
+ type = with lib.types; attrsOf sitemap.entry;
+ default = {};
+ };
+}