From 0e0a533d9a185727d088de793b52950263bdef85 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 22 Aug 2019 15:03:14 +0200 Subject: [PATCH] nixos/pdns-recursor: add luaConfig option --- nixos/modules/services/networking/pdns-recursor.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/modules/services/networking/pdns-recursor.nix b/nixos/modules/services/networking/pdns-recursor.nix index ae22ea17f01..ec69cc838da 100644 --- a/nixos/modules/services/networking/pdns-recursor.nix +++ b/nixos/modules/services/networking/pdns-recursor.nix @@ -137,6 +137,14 @@ in { ''; }; + luaConfig = mkOption { + type = types.lines; + default = ""; + description = '' + The content Lua configuration file for PowerDNS Recursor. See + . + ''; + }; }; config = mkIf cfg.enable { @@ -154,6 +162,7 @@ in { export-etc-hosts = cfg.exportHosts; dnssec = cfg.dnssecValidation; serve-rfc1918 = cfg.serveRFC1918; + lua-config-file = pkgs.writeText "recursor.lua" cfg.luaConfig; log-timestamp = false; disable-syslog = true;