mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 16:39:07 +01:00
27 lines
622 B
Nix
27 lines
622 B
Nix
{ 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 = { };
|
|
};
|
|
}
|