mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
nixos/pdns-recursor: add luaConfig option
This commit is contained in:
parent
92d956267a
commit
0e0a533d9a
@ -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 New Issue
Block a user