glance: Group sites more sensibly

This commit is contained in:
SebastianStork 2026-03-10 15:28:35 +01:00
parent fab7e3ed3d
commit 1c80dbef8b
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
2 changed files with 55 additions and 17 deletions

View file

@ -3,16 +3,20 @@
options.custom.meta.services = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule (
{ name, ... }:
{ name, config, ... }:
{
options = {
title = lib.mkOption {
type = lib.types.nonEmptyStr;
default = name;
};
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
default = name;
};
url = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "https://${name}";
default = "https://${config.domain}";
};
icon = lib.mkOption {
type = lib.types.nonEmptyStr;