Allowing 'named' to have a config file apart, as it can have passwords.
svn path=/nixos/trunk/; revision=30213
This commit is contained in:
parent
d77fc84d2f
commit
2825a3a6ae
@ -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";
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user