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 [{