fix
This commit is contained in:
@@ -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 [{
|
||||
|
||||
Reference in New Issue
Block a user