Add an `extraConfig` option to `bosun`

Changed files
+15
nixos
modules
services
monitoring
+15
nixos/modules/services/monitoring/bosun.nix
···
httpListen = ${cfg.listenAddress}
stateFile = ${cfg.stateFile}
checkFrequency = 5m
'';
in {
···
default = "/var/lib/bosun/bosun.state";
description = ''
Path to bosun's state file.
'';
};
···
httpListen = ${cfg.listenAddress}
stateFile = ${cfg.stateFile}
checkFrequency = 5m
+
+
${cfg.extraConfig}
'';
in {
···
default = "/var/lib/bosun/bosun.state";
description = ''
Path to bosun's state file.
+
'';
+
};
+
+
extraConfig = mkOption {
+
type = types.string;
+
default = "";
+
description = ''
+
Extra configuration options for Bosun. You should describe your
+
desired templates, alerts, macros, etc through this configuration
+
option.
+
+
A detailed description of the supported syntax can be found at-spi2-atk
+
http://bosun.org/configuration.html
'';
};