mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 18:59:07 +01:00
glance: Add services
This commit is contained in:
parent
3abf299cd6
commit
81cb5c2723
1 changed files with 32 additions and 2 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
allHosts,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.custom.web-services.glance;
|
||||
in
|
||||
|
|
@ -21,7 +26,32 @@ in
|
|||
settings = {
|
||||
inherit (cfg) port;
|
||||
|
||||
#pages
|
||||
pages = lib.singleton {
|
||||
name = "Services";
|
||||
columns = [
|
||||
{
|
||||
size = "full";
|
||||
widgets = [
|
||||
{
|
||||
type = "monitor";
|
||||
cache = "1m";
|
||||
title = "Services";
|
||||
sites =
|
||||
allHosts
|
||||
|> lib.attrValues (
|
||||
host:
|
||||
host.config.custom.services.caddy.virtualHosts |> lib.attrValues |> lib.map (vHost: vHost.domain)
|
||||
)
|
||||
|> lib.concatLists
|
||||
|> lib.map (domain: {
|
||||
title = domain;
|
||||
url = domain;
|
||||
});
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue