nixos/pdns-recursor: add luaConfig option

This commit is contained in:
rnhmjoj 2019-08-22 15:03:14 +02:00
parent 92d956267a
commit 0e0a533d9a
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450

View file

@ -137,6 +137,14 @@ in {
'';
};
luaConfig = mkOption {
type = types.lines;
default = "";
description = ''
The content Lua configuration file for PowerDNS Recursor. See
<link xlink:href="https://doc.powerdns.com/recursor/lua-config/index.html"/>.
'';
};
};
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;