nixos-modules: Fixes related to "literalExample" and "defaultText".

wip/yesman
Thomas Strobel 8 years ago
parent cad8957eab
commit 2d6696fc0a
  1. 6
      nixos/modules/services/logging/logstash.nix
  2. 2
      nixos/modules/services/misc/octoprint.nix
  3. 4
      nixos/modules/services/networking/nsd.nix
  4. 9
      nixos/modules/services/networking/wpa_supplicant.nix

@ -85,7 +85,7 @@ in
type = types.lines;
default = ''stdin { type => "example" }'';
description = "Logstash input configuration.";
example = literalExample ''
example = ''
# Read from journal
pipe {
command => "''${pkgs.systemd}/bin/journalctl -f -o json"
@ -98,7 +98,7 @@ in
type = types.lines;
default = ''noop {}'';
description = "logstash filter configuration.";
example = literalExample ''
example = ''
if [type] == "syslog" {
# Keep only relevant systemd fields
# http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html
@ -114,7 +114,7 @@ in
outputConfig = mkOption {
type = types.lines;
default = literalExample ''stdout { debug => true debug_format => "json"}'';
default = ''stdout { debug => true debug_format => "json"}'';
description = "Logstash output configuration.";
example = ''
redis { host => "localhost" data_type => "list" key => "logstash" codec => json }

@ -62,7 +62,9 @@ in
};
plugins = mkOption {
type = types.functionTo (types.listOf types.package);
default = plugins: [];
defaultText = "plugins: []";
example = literalExample "plugins: [ m3d-fio ]";
description = "Additional plugins.";
};

@ -559,7 +559,7 @@ in
algorithm = "hmac-md5";
keyFile = "/path/to/my/key";
};
};
}
'';
description = ''
Define your TSIG keys here.
@ -719,7 +719,7 @@ in
...
''';
};
};
}
'';
description = ''
Define your zones here. Zones can cascade other zones and therefore

@ -78,10 +78,11 @@ in {
'';
default = {};
example = literalExample ''
echelon = {
psk = "abcdefgh";
};
"free.wifi" = {};
{ echelon = {
psk = "abcdefgh";
};
"free.wifi" = {};
}
'';
};

Loading…
Cancel
Save