feat: finish stateless uptime kuma monitors configuration

This commit is contained in:
Luj 2024-12-13 21:24:15 +01:00
parent 305070d9b1
commit 04f9dd2d7c
Signed by: luj
GPG key ID: 6FC74C847011FD83
5 changed files with 27 additions and 3 deletions

View file

@ -1,9 +1,17 @@
{
pkgs,
lib,
nixosConfigurations,
config,
inputs,
...
}:
let
probesFromConfig = lib.mkMerge (
lib.mapAttrsToList (_: value: value.config.machine.meta.monitors) nixosConfigurations
);
in
{
services.uptime-kuma = {
@ -30,6 +38,7 @@
statelessUptimeKuma = {
enableService = true;
probesConfig.monitors = probesFromConfig;
extraFlags = [
"-s"
"-v DEBUG"