2023-06-10 12:50:53 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with import ../../lib/pure.nix { inherit lib; }; {
|
2019-01-21 10:32:15 +01:00
|
|
|
options = {
|
|
|
|
krebs.dns.providers = mkOption {
|
|
|
|
type = types.attrsOf types.str;
|
|
|
|
};
|
|
|
|
krebs.dns.search-domain = mkOption {
|
2020-08-16 11:28:27 +02:00
|
|
|
type = types.nullOr types.hostname;
|
2019-01-21 10:32:15 +01:00
|
|
|
};
|
|
|
|
};
|
2023-06-10 12:50:53 +02:00
|
|
|
config = lib.mkIf config.krebs.enable {
|
2022-11-23 16:49:41 +01:00
|
|
|
krebs.dns.providers = {
|
|
|
|
"krebsco.de" = "zones";
|
|
|
|
shack = "hosts";
|
|
|
|
i = "hosts";
|
|
|
|
r = "hosts";
|
|
|
|
w = "hosts";
|
|
|
|
};
|
|
|
|
krebs.dns.search-domain = mkDefault "r";
|
|
|
|
};
|
2019-01-21 10:32:15 +01:00
|
|
|
}
|