chore(ci): flake update

gatus module upstreamed
This commit is contained in:
arcnmx 2024-10-07 16:20:30 -07:00
parent d04959b11a
commit 07228a1a1f
3 changed files with 262 additions and 206 deletions

View file

@ -174,16 +174,18 @@ in {
};
services.gatus = {
enable = true;
user = mkDefault "gatus";
environmentFile = config.sops.secrets.gatus_environment_file.path;
# Endpoint configuration
endpoints = listToAttrs (concatMap mapSystem statusSystems);
settings = {
# Environment variables are pulled in to be usable within the config.
alerting.discord = {
webhook-url = "\${DISCORD_WEBHOOK_URL}";
};
# Endpoint configuration
endpoints = listToAttrs (concatMap mapSystem statusSystems);
# The actual status page configuration
ui = {
title = "Gensokyo Zone Status";
@ -209,6 +211,15 @@ in {
};
};
users = mkIf (cfg.enable && cfg.user == "gatus") {
groups.gatus = {};
users.gatus = {
group = "gatus";
description = "gatus service user";
isSystemUser = true;
};
};
networking.firewall.interfaces.lan.allowedTCPPorts = mkIf cfg.enable [
cfg.settings.web.port
];