Switch from str -> networkHostOpts for deafult-host
This commit is contained in:
parent
2d96202a58
commit
10e78ba89f
|
@ -74,7 +74,6 @@ let
|
|||
services = {
|
||||
heimdal-kdc = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
description =
|
||||
"Heimdal Kerberos Key Distribution Center (primary ticket server).";
|
||||
path = with pkgs; [ heimdal ];
|
||||
|
@ -277,7 +276,6 @@ let
|
|||
services = {
|
||||
heimdal-kdc-secondary = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
description =
|
||||
"Heimdal Kerberos Key Distribution Center (secondary ticket server).";
|
||||
path = with pkgs; [ heimdal ];
|
||||
|
|
|
@ -130,11 +130,15 @@ let
|
|||
} ${record.host}.";
|
||||
};
|
||||
|
||||
domain-records = dom: zone: ''
|
||||
domain-records = dom: zone:
|
||||
let
|
||||
defaultHostRecords = optionalString (zone.default-host != null)
|
||||
(hostRecords "@" zone.default-host);
|
||||
in ''
|
||||
$ORIGIN ${dom}.
|
||||
$TTL ${zone.default-ttl}
|
||||
|
||||
${optionalString (zone.default-host != null) "@ IN A ${zone.default-host}"}
|
||||
${defaultHostRecords}
|
||||
|
||||
${join-lines (mxRecords zone.mx)}
|
||||
|
||||
|
|
Loading…
Reference in New Issue