From a3c14208c38b6c2c751ff86981d0c9564badb955 Mon Sep 17 00:00:00 2001 From: soraefir Date: Sat, 30 May 2026 23:33:23 +0200 Subject: [PATCH] fix --- modules/server/containers/apps/homepage.nix | 26 +++++++++++++-------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/modules/server/containers/apps/homepage.nix b/modules/server/containers/apps/homepage.nix index c2d5736..63366b7 100644 --- a/modules/server/containers/apps/homepage.nix +++ b/modules/server/containers/apps/homepage.nix @@ -16,16 +16,22 @@ let }; services = pkgs.writers.writeYAML "services.yaml" {[ - [{Media = [] - ++ (if (serverCfg.containers?jellyfin) then [{"Jellyfin"={ - icon = "jellyfin.png"; - href = "https://${serverCfg.containers.jellyfin.subdomain}.${serverCfg.domain}"; - };}] else [])}]; - [{Dev = [] - ++ (if (serverCfg.containers?gitea) then [{"Gitea"={ - icon = "gitea.png"; - href = "https://${serverCfg.containers.gitea.subdomain}.${serverCfg.domain}"; - };}] else [])}]; + {Media = [{ + } // lib.optionalAttrs (serverCfg.containers?jellyfin) { + "Jellyfin"={ + icon = "jellyfin.png"; + href = "https://${serverCfg.containers.jellyfin.subdomain}.${serverCfg.domain}"; + }; + } + ];} + {Dev = [{ + } // lib.optionalAttrs (serverCfg.containers?gitea) { + "Gitea"={ + icon = "gitea.png"; + href = "https://${serverCfg.containers.gitea.subdomain}.${serverCfg.domain}"; + }; + } + ];} # cloud = [] # ++ (if (serverCfg.containers?nextcloud) then [{ # icon = "nextcloud.png";