From b51f8036c2c4e887ce45372dc6b7a4c4a54a0ea0 Mon Sep 17 00:00:00 2001 From: pennae Date: Sun, 14 Aug 2022 05:16:55 +0200 Subject: nixos/*: use properly indented strings for option docs using regular strings works well for docbook because docbook is not as whitespace-sensitive as markdown. markdown would render all of these as code blocks when given the chance. --- nixos/modules/services/networking/bind.nix | 40 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'nixos/modules/services/networking/bind.nix') diff --git a/nixos/modules/services/networking/bind.nix b/nixos/modules/services/networking/bind.nix index 0966332f7d0..f2948a8cc19 100644 --- a/nixos/modules/services/networking/bind.nix +++ b/nixos/modules/services/networking/bind.nix @@ -117,62 +117,62 @@ in cacheNetworks = mkOption { default = [ "127.0.0.0/24" ]; type = types.listOf types.str; - description = " + description = '' What networks are allowed to use us as a resolver. Note that this is for recursive queries -- all networks are allowed to query zones configured with the `zones` option. It is recommended that you limit cacheNetworks to avoid your server being used for DNS amplification attacks. - "; + ''; }; blockedNetworks = mkOption { default = [ ]; type = types.listOf types.str; - description = " + description = '' What networks are just blocked. - "; + ''; }; ipv4Only = mkOption { default = false; type = types.bool; - description = " + description = '' Only use ipv4, even if the host supports ipv6. - "; + ''; }; forwarders = mkOption { default = config.networking.nameservers; defaultText = literalExpression "config.networking.nameservers"; type = types.listOf types.str; - description = " + description = '' List of servers we should forward requests to. - "; + ''; }; forward = mkOption { default = "first"; type = types.enum ["first" "only"]; - description = " + description = '' Whether to forward 'first' (try forwarding but lookup directly if forwarding fails) or 'only'. - "; + ''; }; listenOn = mkOption { default = [ "any" ]; type = types.listOf types.str; - description = " + description = '' Interfaces to listen on. - "; + ''; }; listenOnIpv6 = mkOption { default = [ "any" ]; type = types.listOf types.str; - description = " + description = '' Ipv6 interfaces to listen on. - "; + ''; }; directory = mkOption { @@ -184,9 +184,9 @@ in zones = mkOption { default = [ ]; type = with types; coercedTo (listOf attrs) bindZoneCoerce (attrsOf (types.submodule bindZoneOptions)); - description = " + description = '' List of zones we claim authority over. - "; + ''; example = { "example.com" = { master = false; @@ -201,9 +201,9 @@ in extraConfig = mkOption { type = types.lines; default = ""; - description = " + description = '' Extra lines to be added verbatim to the generated named configuration file. - "; + ''; }; extraOptions = mkOption { @@ -219,10 +219,10 @@ in type = types.path; default = confFile; defaultText = literalExpression "confFile"; - description = " + description = '' Overridable config file to use for named. By default, that generated by nixos. - "; + ''; }; }; -- cgit 1.4.1