lol

logstash module: use literalExample

+3 -3
+3 -3
nixos/modules/services/logging/logstash.nix
··· 85 85 type = types.lines; 86 86 default = ''stdin { type => "example" }''; 87 87 description = "Logstash input configuration."; 88 - example = '' 88 + example = literalExample '' 89 89 # Read from journal 90 90 pipe { 91 91 command => "''${pkgs.systemd}/bin/journalctl -f -o json" ··· 98 98 type = types.lines; 99 99 default = ''noop {}''; 100 100 description = "logstash filter configuration."; 101 - example = '' 101 + example = literalExample '' 102 102 if [type] == "syslog" { 103 103 # Keep only relevant systemd fields 104 104 # http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html ··· 114 114 115 115 outputConfig = mkOption { 116 116 type = types.lines; 117 - default = ''stdout { debug => true debug_format => "json"}''; 117 + default = literalExample ''stdout { debug => true debug_format => "json"}''; 118 118 description = "Logstash output configuration."; 119 119 example = '' 120 120 redis { host => "localhost" data_type => "list" key => "logstash" codec => json }