From efc64042e081c755e46c8b07d74be6b8e4d17e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 3 Nov 2011 18:49:54 +0000 Subject: [PATCH] Adding extraConfig to unbound svn path=/nixos/trunk/; revision=30211 --- modules/services/networking/unbound.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/modules/services/networking/unbound.nix b/modules/services/networking/unbound.nix index 3c35c0c1dd5..fb75b4ed069 100644 --- a/modules/services/networking/unbound.nix +++ b/modules/services/networking/unbound.nix @@ -32,9 +32,10 @@ let pidfile: "${stateDir}/unbound.pid" verbosity: 1 # uncomment and increase to get more logging. # listen on all interfaces, answer queries from the local subnet. - ${interfaces} - ${access} - ${forward} + ${interfaces} + ${access} + ${forward} + ${cfg.extraConfig} ''; in @@ -75,6 +76,13 @@ in "; }; + extraConfig = mkOption { + default = ""; + description = " + Extra unbound config + "; + }; + }; };