monitoring: contact points is now always needed it seems
This commit is contained in:
parent
6c27935101
commit
a0ce1392af
2 changed files with 3 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ in
|
||||||
(lib.mkIf cfg.enable {
|
(lib.mkIf cfg.enable {
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
{
|
||||||
assertion = (!(isNull cfg.smtp)) -> builtins.length cfg.contactPoints > 0;
|
assertion = builtins.length cfg.contactPoints > 0;
|
||||||
message = "Must have at least one contact point for alerting";
|
message = "Must have at least one contact point for alerting";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ let
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit (config.test) subdomain domain;
|
inherit (config.test) subdomain domain;
|
||||||
|
|
||||||
|
contactPoints = [ "me@example.com" ];
|
||||||
|
|
||||||
grafanaPort = 3000;
|
grafanaPort = 3000;
|
||||||
adminPassword.result = config.shb.hardcodedsecret."admin_password".result;
|
adminPassword.result = config.shb.hardcodedsecret."admin_password".result;
|
||||||
secretKey.result = config.shb.hardcodedsecret."secret_key".result;
|
secretKey.result = config.shb.hardcodedsecret."secret_key".result;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue