feat: add homepage icons and Home Assistant entry

This commit is contained in:
marthsincemelee
2026-04-20 16:34:27 +02:00
parent 004f04eca5
commit 2d43ed36ea
12 changed files with 39 additions and 2 deletions
+8
View File
@@ -48,6 +48,13 @@ let
Optional homepage-dashboard description for this virtual host.
'';
};
icon = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
description = ''
Optional homepage-dashboard icon for this virtual host.
'';
};
};
port = lib.mkOption {
type = with lib.types; nullOr port;
@@ -158,6 +165,7 @@ in
else
"Web service";
href = "https://${vhost.subdomain}.${domain}";
icon = vhost.homepage.icon;
}
) (builtins.filter (vhost: vhost.homepage.enable) cfg.virtualHosts);