prepare config for healthchecks integration

This commit is contained in:
Alex Tau 2025-08-13 16:59:23 +03:00
parent 4558cf9e6f
commit c01ab8303c
8 changed files with 89 additions and 34 deletions

View file

@ -31,9 +31,15 @@ package:
serviceConfigFile = json.generate "config.json" {
enabled_check_sets = cfg.enabledCheckSets;
log_level = cfg.logLevel;
telegram = with cfg.telegram; {
creds_secret_path = credsSecretPath;
room_id = roomId;
alert_channels = {
telegram = with cfg.alertChannels.telegram; if enable then
{
creds_secret_path = credsSecretPath;
room_id = roomId;
} else null;
healthchecks = with cfg.alertChannels.healthchecks; if enable then {
pinging_keys_secret_path = pingingKeysSecretPath;
} else null;
};
checks = {
temp.sensors = lib.mapAttrs (_: sensorCfg: {