mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 22:29:06 +01:00
glance: Add dns widgets
This commit is contained in:
parent
0a8944823b
commit
16944ec493
1 changed files with 12 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue