nixos: add services.bind.extraConfig option
This option allows users to add arbitrary configuration statements into the generated named.conf file.
This commit is contained in:
parent
51512d4c8f
commit
4578784820
1 changed files with 9 additions and 0 deletions
|
@ -24,6 +24,8 @@ let
|
|||
pid-file "/var/run/named/named.pid";
|
||||
};
|
||||
|
||||
${cfg.extraConfig}
|
||||
|
||||
${ concatMapStrings
|
||||
({ name, file, master ? true, slaves ? [], masters ? [] }:
|
||||
''
|
||||
|
@ -110,6 +112,13 @@ in
|
|||
}];
|
||||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
default = "";
|
||||
description = "
|
||||
Extra lines to be added verbatim to the generated named configuration file.
|
||||
";
|
||||
};
|
||||
|
||||
configFile = mkOption {
|
||||
default = confFile;
|
||||
description = "
|
||||
|
|
Loading…
Reference in a new issue