hosts/srv-monitor: Reinstall with new hostname and larger nix partiiton

This commit is contained in:
SebastianStork 2025-09-16 21:19:02 +02:00
parent 697eae282e
commit 4f826e8370
5 changed files with 5 additions and 5 deletions

View file

@ -0,0 +1,82 @@
{ config, ... }:
{
system.stateVersion = "25.05";
meta = {
domains.validate = true;
ports.validate = true;
};
custom = {
impermanence.enable = true;
sops = {
enable = true;
agePublicKey = "age1zrm4vtlgv3vtq3w8jjl5zkpz7jatgscxp8mel5emzvu44s5u2uasajq8mu";
};
boot.loader.grub.enable = true;
services = {
resolved.enable = true;
tailscale = {
enable = true;
ssh.enable = true;
};
gatus = {
enable = true;
domain = "status.${config.custom.services.tailscale.domain}";
domainsToMonitor = config.meta.domains.globalList;
endpoints = {
"alerts" = {
group = "Monitoring";
path = "/v1/health";
extraConditions = [ "[BODY].healthy == true" ];
};
"grafana".group = "Monitoring";
"logs".group = "Monitoring";
"git ssh" = {
protocol = "ssh";
domain = "git.sstork.dev";
};
"speedtest".protocol = "http";
};
};
ntfy = {
enable = true;
domain = "alerts.${config.custom.services.tailscale.domain}";
};
grafana = {
enable = true;
domain = "grafana.${config.custom.services.tailscale.domain}";
};
victorialogs = {
enable = true;
domain = "logs.${config.custom.services.tailscale.domain}";
};
caddy.virtualHosts =
let
inherit (config.custom) services;
in
{
gatus = {
inherit (services.gatus) domain port;
};
ntfy = {
inherit (services.ntfy) domain port;
};
grafana = {
inherit (services.grafana) domain port;
};
victorialogs = {
inherit (services.victorialogs) domain port;
};
};
};
};
}