krebs: extract sitemap into separate module
This commit is contained in:
parent
7b4ea4750e
commit
6af959ad44
|
@ -49,6 +49,7 @@ let
|
||||||
./secret.nix
|
./secret.nix
|
||||||
./setuid.nix
|
./setuid.nix
|
||||||
./shadow.nix
|
./shadow.nix
|
||||||
|
./sitemap.nix
|
||||||
./ssl.nix
|
./ssl.nix
|
||||||
./sync-containers.nix
|
./sync-containers.nix
|
||||||
./systemd.nix
|
./systemd.nix
|
||||||
|
@ -67,11 +68,6 @@ let
|
||||||
api = {
|
api = {
|
||||||
enable = mkEnableOption "krebs";
|
enable = mkEnableOption "krebs";
|
||||||
|
|
||||||
sitemap = mkOption {
|
|
||||||
default = {};
|
|
||||||
type = types.attrsOf types.sitemap.entry;
|
|
||||||
};
|
|
||||||
|
|
||||||
zone-head-config = mkOption {
|
zone-head-config = mkOption {
|
||||||
type = with types; attrsOf str;
|
type = with types; attrsOf str;
|
||||||
description = ''
|
description = ''
|
||||||
|
|
8
krebs/3modules/sitemap.nix
Normal file
8
krebs/3modules/sitemap.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
let
|
||||||
|
lib = import ../../lib;
|
||||||
|
in {
|
||||||
|
options.krebs.sitemap = lib.mkOption {
|
||||||
|
type = with lib.types; attrsOf sitemap.entry;
|
||||||
|
default = {};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue