From 5dffd74661cfcc741a4537a0bcf5bc4fbdc96a5b Mon Sep 17 00:00:00 2001 From: soraefir Date: Sat, 30 May 2026 23:40:09 +0200 Subject: [PATCH] fix --- modules/server/containers/apps/homepage.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/modules/server/containers/apps/homepage.nix b/modules/server/containers/apps/homepage.nix index 95fa082..664d0a7 100644 --- a/modules/server/containers/apps/homepage.nix +++ b/modules/server/containers/apps/homepage.nix @@ -16,21 +16,27 @@ let }; services = pkgs.writers.writeYAML "services.yaml" [ - {Media = [ - {} // lib.optionalAttrs (serverCfg.containers?jellyfin) { + {Media = lib.flatten [ + (lib.optional (serverCfg.containers?jellyfin) { Jellyfin={ icon = "jellyfin.png"; href = "https://${serverCfg.containers.jellyfin.subdomain}.${serverCfg.domain}"; }; - } + }) + (lib.optional (serverCfg.containers?invidious) { + Invidious={ + icon = "invidious.png"; + href = "https://${serverCfg.containers.invidious.subdomain}.${serverCfg.domain}"; + }; + }) ];} - {Dev = [ - {} // lib.optionalAttrs (serverCfg.containers?gitea) { + {Dev = lib.flatten [ + (lib.optional (serverCfg.containers?gitea) { Gitea={ icon = "gitea.png"; href = "https://${serverCfg.containers.gitea.subdomain}.${serverCfg.domain}"; }; - } + }) ];} # cloud = [] # ++ (if (serverCfg.containers?nextcloud) then [{