summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-09-29 11:50:39 +0200
committerPeter Simons <simons@cryp.to>2015-09-29 11:51:40 +0200
commit457878482000f59133487772e66971e2e797c8a6 (patch)
tree207f6fc9e0eff9ca08ec0699c0d040e58118fc0b /nixos/modules/services/networking
parent51512d4c8f985a8eef3c3d871d9bd7ff6efba029 (diff)
downloadnixlib-457878482000f59133487772e66971e2e797c8a6.tar
nixlib-457878482000f59133487772e66971e2e797c8a6.tar.gz
nixlib-457878482000f59133487772e66971e2e797c8a6.tar.bz2
nixlib-457878482000f59133487772e66971e2e797c8a6.tar.lz
nixlib-457878482000f59133487772e66971e2e797c8a6.tar.xz
nixlib-457878482000f59133487772e66971e2e797c8a6.tar.zst
nixlib-457878482000f59133487772e66971e2e797c8a6.zip
nixos: add services.bind.extraConfig option
This option allows users to add arbitrary configuration statements into
the generated named.conf file.
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/bind.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/bind.nix b/nixos/modules/services/networking/bind.nix
index 57547da10067..34e7470dfc6f 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 = "