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:
@@ -24,6 +24,8 @@ let
|
|||||||
pid-file "/var/run/named/named.pid";
|
pid-file "/var/run/named/named.pid";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
${cfg.extraConfig}
|
||||||
|
|
||||||
${ concatMapStrings
|
${ concatMapStrings
|
||||||
({ name, file, master ? true, slaves ? [], masters ? [] }:
|
({ 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 {
|
configFile = mkOption {
|
||||||
default = confFile;
|
default = confFile;
|
||||||
description = "
|
description = "
|
||||||
|
|||||||
Reference in New Issue
Block a user