meta/services: Init module

This commit is contained in:
SebastianStork 2026-03-10 00:01:36 +01:00
parent fd5acfbcf6
commit b26751a5fb
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -0,0 +1,27 @@
{ lib, ... }:
{
options.custom.meta.services = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule (
{ name, ... }:
{
options = {
title = 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 = { };
};
}