feat: add homepage icons and Home Assistant entry
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user