{ config, containerCfg, pkgs, lib, builder, name, ... }: let version = "latest"; serverCfg = config.syscfg.server; in { containers = { server = builder.mkContainer { subdomain = containerCfg.subdomain; image = "collabora/code:${version}"; port = 9980; ip = containerCfg.ip; secret = name; extraEnv = { "aliasgroup1" = "https://${serverCfg.containers.nextcloud.subdomain}.${serverCfg.hostDomain}"; "server_name" = "${containerCfg.subdomain}.${serverCfg.hostDomain}"; "VIRTUAL_HOST" = "${containerCfg.subdomain}.${serverCfg.hostDomain}"; "VIRTUAL_PORT" = "9980"; "VIRTUAL_PROTO" = "http"; "DONT_GEN_SSL_CERT" = "true"; "RESOLVE_TO_PROXY_IP" = "true"; "extra_params" = "--o:ssl.enable=false --o:ssl.termination=true"; "dictionaries" = "en fr de jp no"; }; overrides = { volumes = [ "${pkgs.noto-fonts}/share/fonts/noto:/opt/collaboraoffice/share/fonts/truetype/noto:ro" "${pkgs.ibm-plex}/share/fonts/opentype:/opt/collaboraoffice/share/fonts/opentype/plex:ro" ]; }; }; }; }