46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ lib, ... }:
|
|
{
|
|
type = lib.types.submodule {
|
|
options = {
|
|
tab = lib.mkOption {
|
|
type = lib.types.str;
|
|
example = "Apps";
|
|
description = "Groups the entry in a Homepage tab.";
|
|
};
|
|
|
|
section = lib.mkOption {
|
|
type = lib.types.str;
|
|
example = "Media";
|
|
description = "Groups the entry in a Homepage section.";
|
|
};
|
|
|
|
name = lib.mkOption {
|
|
type = lib.types.str;
|
|
example = "Navidrome";
|
|
description = "Sets the display name in Homepage.";
|
|
};
|
|
|
|
description = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.str;
|
|
default = null;
|
|
example = "Music";
|
|
description = "Sets the description in Homepage.";
|
|
};
|
|
|
|
icon = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.str;
|
|
default = null;
|
|
example = "navidrome.png";
|
|
description = "Sets the icon in Homepage.";
|
|
};
|
|
|
|
href = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.str;
|
|
default = null;
|
|
example = "https://music.alexion.dev";
|
|
description = "Overrides the generated Homepage link.";
|
|
};
|
|
};
|
|
};
|
|
}
|