3
0
Fork 0
forked from mirrors/nixpkgs

Allowing 'named' to have a config file apart, as it can have passwords.

svn path=/nixos/trunk/; revision=30213
This commit is contained in:
Lluís Batlle i Rossell 2011-11-03 19:13:52 +00:00
parent d77fc84d2f
commit 2825a3a6ae

View file

@ -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";
};
};