3
0
Fork 0
forked from mirrors/nixpkgs

nixos/bind: allow manual additions to zone config fragments

This commit is contained in:
Pierre Bourdon 2019-07-20 17:36:05 +02:00
parent 46f8ec0278
commit 6332bc25cd
No known key found for this signature in database
GPG key ID: 6FB80DCD84DA0F1C

View file

@ -33,7 +33,7 @@ let
${cfg.extraConfig}
${ concatMapStrings
({ name, file, master ? true, slaves ? [], masters ? [] }:
({ name, file, master ? true, slaves ? [], masters ? [], extraConfig ? "" }:
''
zone "${name}" {
type ${if master then "master" else "slave"};
@ -52,6 +52,7 @@ let
''
}
allow-query { any; };
${extraConfig}
};
'')
cfg.zones }
@ -131,6 +132,7 @@ in
file = "/var/dns/example.com";
masters = ["192.168.0.1"];
slaves = [];
extraConfig = "";
}];
};