This commit is contained in:
soraefir
2026-05-30 23:33:23 +02:00
parent 00990b49e4
commit a3c14208c3

View File

@@ -16,16 +16,22 @@ let
}; };
services = pkgs.writers.writeYAML "services.yaml" {[ services = pkgs.writers.writeYAML "services.yaml" {[
[{Media = [] {Media = [{
++ (if (serverCfg.containers?jellyfin) then [{"Jellyfin"={ } // lib.optionalAttrs (serverCfg.containers?jellyfin) {
icon = "jellyfin.png"; "Jellyfin"={
href = "https://${serverCfg.containers.jellyfin.subdomain}.${serverCfg.domain}"; icon = "jellyfin.png";
};}] else [])}]; href = "https://${serverCfg.containers.jellyfin.subdomain}.${serverCfg.domain}";
[{Dev = [] };
++ (if (serverCfg.containers?gitea) then [{"Gitea"={ }
icon = "gitea.png"; ];}
href = "https://${serverCfg.containers.gitea.subdomain}.${serverCfg.domain}"; {Dev = [{
};}] else [])}]; } // lib.optionalAttrs (serverCfg.containers?gitea) {
"Gitea"={
icon = "gitea.png";
href = "https://${serverCfg.containers.gitea.subdomain}.${serverCfg.domain}";
};
}
];}
# cloud = [] # cloud = []
# ++ (if (serverCfg.containers?nextcloud) then [{ # ++ (if (serverCfg.containers?nextcloud) then [{
# icon = "nextcloud.png"; # icon = "nextcloud.png";