- lib.optional (builtins.elem "raito" z.ns) {
- service_description = "raito dns is active and authoritative for ${name}";
+ lib.optionals (builtins.elem "raito" z.ns) [
+ {
+ service_description = "raito dns is active and authoritative for ${name}";
+ host_name = config.hostEnv.fqdn;
+ use = "dns-service";
+ check_command = ["check_external_dns" "kurisu.dual.lahfa.xyz" name "-A"];
+
+ servicegroups = "webstatus-dns";
+ _webstatus_name = "${name} (Secondary DNS Raito)";
+ }
+ {
+ service_description = "raito dns is up to date for ${name}";
+ host_name = config.hostEnv.fqdn;
+ use = "dns-service";
+ check_command = ["check_dns_soa" "kurisu.dual.lahfa.xyz" name config.hostEnv.fqdn];
+
+ servicegroups = "webstatus-dns";
+ _webstatus_name = "${name} (Secondary DNS Raito up to date)";
+ }
+ ] ++
+ lib.optional z.dnssec.enable {
+ service_description = "DNSSEC is active and not expired for ${name}";