glance: Add dns widgets

This commit is contained in:
SebastianStork 2026-03-17 22:00:00 +01:00
parent 0a8944823b
commit 16944ec493
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -92,6 +92,17 @@ let
</div> </div>
''; '';
}; };
dnsWidgets =
allHosts
|> lib.attrValues
|> lib.filter (host: host.config.custom.services.blocking-nameserver.enable)
|> lib.map (host: {
type = "dns-stats";
title = host.config.networking.hostName;
service = "adguard";
url = "https://${host.config.custom.services.blocking-nameserver.gui.domain}/";
});
in in
{ {
options.custom.web-services.glance = { options.custom.web-services.glance = {
@ -132,7 +143,7 @@ in
} }
{ {
size = "small"; size = "small";
widgets = [ githubBadgeWidget ]; widgets = [ githubBadgeWidget ] ++ dnsWidgets;
} }
]; ];
}; };