2019-01-21 09:32:15 +00:00
|
|
|
with import <stockholm/lib>;
|
2022-11-23 15:49:41 +00:00
|
|
|
{ config, ... }: {
|
2019-01-21 09:32:15 +00:00
|
|
|
options = {
|
|
|
|
krebs.dns.providers = mkOption {
|
|
|
|
type = types.attrsOf types.str;
|
|
|
|
};
|
|
|
|
krebs.dns.search-domain = mkOption {
|
2020-08-16 09:28:27 +00:00
|
|
|
type = types.nullOr types.hostname;
|
2019-01-21 09:32:15 +00:00
|
|
|
};
|
|
|
|
};
|
2022-11-23 15:49:41 +00:00
|
|
|
config = mkIf config.krebs.enable {
|
|
|
|
krebs.dns.providers = {
|
|
|
|
"krebsco.de" = "zones";
|
|
|
|
shack = "hosts";
|
|
|
|
i = "hosts";
|
|
|
|
r = "hosts";
|
|
|
|
w = "hosts";
|
|
|
|
};
|
|
|
|
krebs.dns.search-domain = mkDefault "r";
|
|
|
|
};
|
2019-01-21 09:32:15 +00:00
|
|
|
}
|