Added more cities to log

This commit is contained in:
2026-04-21 20:29:51 +02:00
parent 0ba098c18c
commit cfe0c19bf6
3 changed files with 50 additions and 20 deletions

View File

@@ -126,6 +126,14 @@ let
custom_themes = catppuccinThemes; custom_themes = catppuccinThemes;
feature_custom_themes = true; feature_custom_themes = true;
}; };
features = {
feature_group_calls = true;
};
element_call = {
url = "https://livekit.cyperpunk.de";
participant_limit = 8;
brand = "Element Call";
};
} }
); );
elementWebConfigured = pkgs.element-web.overrideAttrs (old: { elementWebConfigured = pkgs.element-web.overrideAttrs (old: {

View File

@@ -45,7 +45,8 @@
}; };
extra_well_known_client_content = { extra_well_known_client_content = {
"io.element.call.backend" = { "io.element.call.backend" = {
url = "https://call.element.io"; url = "https://livekit.cyperpunk.de";
livekit_service_url = "https://livekit.cyperpunk.de/_matrix/livekit/jwt";
}; };
}; };
listeners = [ listeners = [

View File

@@ -20,6 +20,44 @@ let
"cyper-node-1" = "192.168.2.30"; "cyper-node-1" = "192.168.2.30";
"cyper-node-2" = "192.168.2.31"; "cyper-node-2" = "192.168.2.31";
}; };
mkWeatherScrapeConfigs =
cities:
map (city: {
job_name = "weather_${lib.strings.toLower (lib.strings.replaceStrings [ " " ] [ "_" ] city)}";
scrape_interval = "5m";
scrape_timeout = "30s";
metrics_path = "/${city}";
params.format = [ "p1" ];
static_configs = [ { targets = [ "wttr.in" ]; } ];
scheme = "https";
metric_relabel_configs = [
{
target_label = "location";
replacement = city;
}
];
}) cities;
weatherCities = [
# Braunschweig itself
"Braunschweig"
# Immediate surroundings (~15km)
"Wolfenbuettel"
"Salzgitter"
"Peine"
"Cremlingen"
"Wendeburg"
"Sickte"
# Greater region (~50km)
"Wolfsburg"
"Gifhorn"
"Goslar"
"Hildesheim"
"Hannover"
];
in in
{ {
sops.secrets = { sops.secrets = {
@@ -89,23 +127,6 @@ in
]; ];
metrics_path = "/metrics"; metrics_path = "/metrics";
} }
{
job_name = "weather_braunschweig";
scrape_interval = "5m"; # be a polite citizen to wttr.in
scrape_timeout = "30s";
metrics_path = "/Braunschweig";
params = {
format = [ "p1" ];
};
static_configs = [ { targets = [ "wttr.in" ]; } ];
scheme = "https";
metric_relabel_configs = [
{
target_label = "location";
replacement = "Braunschweig";
}
];
}
{ {
job_name = "synapse"; job_name = "synapse";
scrape_interval = "15s"; scrape_interval = "15s";
@@ -121,9 +142,9 @@ in
} }
]; ];
} }
] ]
++ (lib.mapAttrsToList mkNodeJob extraNodes); ++ (lib.mapAttrsToList mkNodeJob extraNodes)
++ (mkWeatherScrapeConfigs weatherCities);
}; };
loki = { loki = {