From 872ac61bf1420655c4a3ea5174294ae714ce1922 Mon Sep 17 00:00:00 2001 From: kurogeek Date: Wed, 23 Sep 2026 10:08:52 +0700 Subject: [PATCH] mob next [ci-skip] [ci skip] [skip ci] lastFile:inventories/default.nix --- inventories/default.nix | 1 + machines/stellio/configuration.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/inventories/default.nix b/inventories/default.nix index e73f108..440186a 100644 --- a/inventories/default.nix +++ b/inventories/default.nix @@ -524,6 +524,7 @@ almach.settings = { exporters.smartctl = { }; }; + stellio.settings.exporters.smartctl = { }; }; }; diff --git a/machines/stellio/configuration.nix b/machines/stellio/configuration.nix index 865f7e2..5e9b2f0 100644 --- a/machines/stellio/configuration.nix +++ b/machines/stellio/configuration.nix @@ -66,5 +66,24 @@ } validate && touch $out '') ]; + + systemd.services.heartbeat-push = { + description = "Heartbeat push to uptime monitor"; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.curl}/bin/curl -s -o /dev/null https://uptime.b4l.co.th/api/push/X0WCHAcY5gPf1U8If7BT1FLjpacZqGZu?status=up&msg=OK&ping="; + }; + }; + + systemd.timers.heartbeat-push = { + description = "Heartbeat push timer"; + wantedBy = [ "timers.target" ]; + timerConfig = { + OnBootSec = "60s"; + OnUnitActiveSec = "60s"; + Unit = "heartbeat-push.service"; + }; + }; + }; }