fix: long topology rendering times
Some checks failed
Build and Deploy / build (push) Has been cancelled
Flake check / Check flake (push) Has been cancelled
Build and Deploy / deploy (push) Has been cancelled

This commit is contained in:
Leon Schwarzäugl 2026-01-24 01:16:29 +01:00
parent 70e908fcb0
commit edd2c61b17
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
50 changed files with 20 additions and 12 deletions

View file

@ -30,7 +30,10 @@ in
mpv
];
topology.self.services.${serviceName}.info = "http://localhost:${builtins.toString servicePort}";
topology.self.services.${serviceName} = {
info = "http://localhost:${builtins.toString servicePort}";
icon = lib.mkForce "${self}/files/topology-images/mpd.png";
};
environment.persistence."/state" = lib.mkIf config.swarselsystems.isMicroVM {
directories = [{ directory = "/var/lib/${serviceName}"; user = "mpd"; group = "mpd"; }];

View file

@ -1,4 +1,4 @@
{ self, lib, config, dns, globals, confLib, ... }:
{ lib, config, dns, globals, confLib, ... }:
let
inherit (confLib.gen { name = "slink"; port = 3000; dir = "/var/lib/slink"; }) servicePort serviceName serviceDomain serviceDir serviceAddress proxyAddress4 proxyAddress6;
inherit (confLib.static) isHome isProxied webProxy homeWebProxy dnsServer homeProxyIf webProxyIf homeServiceAddress nginxAccessRules;
@ -57,7 +57,7 @@ in
topology.self.services.${serviceName} = {
name = lib.swarselsystems.toCapitalized serviceName;
info = "https://${serviceDomain}";
icon = "${self}/files/topology-images/shlink.png";
icon = "services.not-available";
};
globals = {