mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
nixos/pdns-recursor: add luaConfig option
This commit is contained in:
parent
92d956267a
commit
0e0a533d9a
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue