1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-28 12:06:38 +03:00

Merge pull request #65179 from delroth/bind-extraconfig

nixos/bind: allow manual additions to zone config fragments
This commit is contained in:
Robin Gloster 2019-07-22 17:53:49 +00:00 committed by GitHub
commit da2eda65e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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