krebs: extract sitemap into separate module

This commit is contained in:
tv 2022-11-23 16:43:02 +01:00
parent 7b4ea4750e
commit 6af959ad44
2 changed files with 9 additions and 5 deletions

View File

@ -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 = ''

View File

@ -0,0 +1,8 @@
let
lib = import ../../lib;
in {
options.krebs.sitemap = lib.mkOption {
type = with lib.types; attrsOf sitemap.entry;
default = {};
};
}