fix
This commit is contained in:
@@ -16,21 +16,27 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = pkgs.writers.writeYAML "services.yaml" [
|
services = pkgs.writers.writeYAML "services.yaml" [
|
||||||
{Media = [
|
{Media = lib.flatten [
|
||||||
{} // lib.optionalAttrs (serverCfg.containers?jellyfin) {
|
(lib.optional (serverCfg.containers?jellyfin) {
|
||||||
Jellyfin={
|
Jellyfin={
|
||||||
icon = "jellyfin.png";
|
icon = "jellyfin.png";
|
||||||
href = "https://${serverCfg.containers.jellyfin.subdomain}.${serverCfg.domain}";
|
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 = [
|
{Dev = lib.flatten [
|
||||||
{} // lib.optionalAttrs (serverCfg.containers?gitea) {
|
(lib.optional (serverCfg.containers?gitea) {
|
||||||
Gitea={
|
Gitea={
|
||||||
icon = "gitea.png";
|
icon = "gitea.png";
|
||||||
href = "https://${serverCfg.containers.gitea.subdomain}.${serverCfg.domain}";
|
href = "https://${serverCfg.containers.gitea.subdomain}.${serverCfg.domain}";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
];}
|
];}
|
||||||
# cloud = []
|
# cloud = []
|
||||||
# ++ (if (serverCfg.containers?nextcloud) then [{
|
# ++ (if (serverCfg.containers?nextcloud) then [{
|
||||||
|
|||||||
Reference in New Issue
Block a user