diff options
author | Pierre Bourdon <delroth@gmail.com> | 2019-07-20 17:36:05 +0200 |
---|---|---|
committer | Pierre Bourdon <delroth@gmail.com> | 2019-07-20 17:50:37 +0200 |
commit | 6332bc25cde78d79d70041952f787f31bc12ae00 (patch) | |
tree | f531828b5a5d4ad0d8a0d356f8b0bae82f49fa2f /nixos/modules/services/networking/bind.nix | |
parent | 46f8ec027832875755469638c037801a979dfdba (diff) | |
download | nixpkgs-6332bc25cde78d79d70041952f787f31bc12ae00.tar nixpkgs-6332bc25cde78d79d70041952f787f31bc12ae00.tar.gz nixpkgs-6332bc25cde78d79d70041952f787f31bc12ae00.tar.bz2 nixpkgs-6332bc25cde78d79d70041952f787f31bc12ae00.tar.lz nixpkgs-6332bc25cde78d79d70041952f787f31bc12ae00.tar.xz nixpkgs-6332bc25cde78d79d70041952f787f31bc12ae00.tar.zst nixpkgs-6332bc25cde78d79d70041952f787f31bc12ae00.zip |
nixos/bind: allow manual additions to zone config fragments
Diffstat (limited to 'nixos/modules/services/networking/bind.nix')
-rw-r--r-- | nixos/modules/services/networking/bind.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/bind.nix b/nixos/modules/services/networking/bind.nix index 2097b9a3163..06af4dbcca4 100644 --- a/nixos/modules/services/networking/bind.nix +++ b/nixos/modules/services/networking/bind.nix @@ -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 = ""; }]; }; |