From 2825a3a6ae86fb0f0d8bb3dea42f58f0825a7d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 3 Nov 2011 19:13:52 +0000 Subject: [PATCH] Allowing 'named' to have a config file apart, as it can have passwords. svn path=/nixos/trunk/; revision=30213 --- modules/services/networking/bind.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/services/networking/bind.nix b/modules/services/networking/bind.nix index 54eb5e08e9be..4f69ff4c84a6 100644 --- a/modules/services/networking/bind.nix +++ b/modules/services/networking/bind.nix @@ -96,6 +96,14 @@ in }]; }; + configFile = mkOption { + default = confFile; + description = " + Overridable config file to use for named. By default, that + generated by nixos. + "; + }; + }; }; @@ -113,7 +121,7 @@ in ${pkgs.coreutils}/bin/mkdir -p /var/run/named ''; - exec = "${pkgs.bind}/sbin/named -c ${confFile} -f"; + exec = "${pkgs.bind}/sbin/named -c ${cfg.configFile} -f"; }; };