glance: Improve services

This commit is contained in:
SebastianStork 2026-03-09 23:10:08 +01:00
parent 5cfb73e183
commit 5cf56036d7
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
21 changed files with 161 additions and 20 deletions

View file

@ -0,0 +1,27 @@
{ lib, ... }:
{
options.custom.meta.services = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule (
{ name, ... }:
{
options = {
name = lib.mkOption {
type = lib.types.nonEmptyStr;
default = name;
};
url = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "https://${name}";
};
icon = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
};
};
}
)
);
default = { };
};
}