monitoring: contact points is now always needed it seems

This commit is contained in:
ibizaman 2026-03-11 10:41:53 +01:00
parent 6c27935101
commit a0ce1392af
2 changed files with 3 additions and 1 deletions

View file

@ -268,7 +268,7 @@ in
(lib.mkIf cfg.enable {
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";
}
];

View file

@ -33,6 +33,8 @@ let
enable = true;
inherit (config.test) subdomain domain;
contactPoints = [ "me@example.com" ];
grafanaPort = 3000;
adminPassword.result = config.shb.hardcodedsecret."admin_password".result;
secretKey.result = config.shb.hardcodedsecret."secret_key".result;