services, web-services: Populate meta.services attribute set

This commit is contained in:
SebastianStork 2026-03-10 00:03:03 +01:00
parent b26751a5fb
commit fe5113d476
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
21 changed files with 135 additions and 10 deletions

View file

@ -98,6 +98,13 @@ in
};
};
custom.services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
custom = {
services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
meta.services.${cfg.domain} = {
title = "Alertmanager";
icon = "sh:prometheus";
};
};
};
}

View file

@ -128,6 +128,13 @@ in
};
};
custom.services.caddy.virtualHosts.${cfg.domain}.port = lib.mkIf (cfg.domain != null) cfg.port;
custom = {
services.caddy.virtualHosts.${cfg.domain}.port = lib.mkIf (cfg.domain != null) cfg.port;
meta.services.${cfg.domain} = lib.mkIf (cfg.domain != null) {
title = "Alloy";
icon = "sh:grafana-alloy";
};
};
};
}

View file

@ -125,6 +125,11 @@ in
services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
persistence.directories = [ "/var/lib/${config.services.prometheus.stateDir}" ];
meta.services.${cfg.domain} = {
title = "Prometheus";
icon = "sh:prometheus";
};
};
};
}

View file

@ -170,6 +170,11 @@ in
};
persistence.directories = [ dataDir ];
meta.services.${cfg.gui.domain} = lib.mkIf (cfg.gui.domain != null) {
title = "Syncthing";
icon = "sh:syncthing";
};
};
};
}