Files
nix-config/hosts/idols-aquamarine
Ryan Yin 21c6d9b7bc fix(monitoring): drop $vars from telegram template to survive envsubst
The NixOS alertmanager module pipes the generated config through
envsubst to inject secrets, which silently replaced the template's
$i/$a variables with empty strings, so every telegram notification
failed with a template parse error since Friday's deploy.

Rewrite the template without variables: range + dot, define/template
for the per-alert block, and an if/else split to cap a group at 5
alerts (slice errors when fewer than 5). Verified with amtool template
render against post-envsubst content for both branches.

Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
2026-07-26 15:16:46 +08:00
..
2026-03-19 22:25:48 +08:00
2026-06-01 10:02:49 +08:00
2026-06-01 10:02:49 +08:00
2024-07-31 17:09:20 +08:00
2026-06-01 10:02:49 +08:00
2026-03-20 01:27:49 +08:00
2026-06-01 10:02:49 +08:00

Idols - Aquamarine

Storage, operation and maintenance related services are running on this host:

  1. Storage such as git server, file server/browser, torrent downloader,, etc.
  2. Backup or sync my personal data to cloud or NAS.
    • For safety, those data should be encrypted before sending to the cloud or my NAS.
  3. Collect and monitor the metrics/logs of my homelab.

Features

Services:

  1. prometheus + alertmanager + grafana + loki: Monitor the metrics/logs of my homelab.
  2. restic: Backup my personal data to cloud or NAS.
  3. synthing: Sync file between android/macbook/PC and NAS.
  4. gitea: Self-hosted git service.
  5. sftpgo: SFTP server.
  6. transmission & AriaNg: Torrent downloader and HTTP downloader
  7. alist/filebrower: File browser for local/SMB/Cloud

All the services assumes a reverse proxy to be setup in the front, they are all listening on localhost, and a caddy service is listening on the local network interface and proxy the requests to the services.