From 457878482000f59133487772e66971e2e797c8a6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 29 Sep 2015 11:50:39 +0200 Subject: [PATCH] nixos: add services.bind.extraConfig option This option allows users to add arbitrary configuration statements into the generated named.conf file. --- nixos/modules/services/networking/bind.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/modules/services/networking/bind.nix b/nixos/modules/services/networking/bind.nix index 57547da1006..34e7470dfc6 100644 --- a/nixos/modules/services/networking/bind.nix +++ b/nixos/modules/services/networking/bind.nix @@ -24,6 +24,8 @@ let pid-file "/var/run/named/named.pid"; }; + ${cfg.extraConfig} + ${ concatMapStrings ({ name, file, master ? true, slaves ? [], masters ? [] }: '' @@ -110,6 +112,13 @@ in }]; }; + extraConfig = mkOption { + default = ""; + description = " + Extra lines to be added verbatim to the generated named configuration file. + "; + }; + configFile = mkOption { default = confFile; description = "