According to one upstream bug OnlyOffice is unable to locate font files on NixOS. A workaround is to install missing or additional fonts and copy them to the user directory
https://nixos.wiki/wiki/Onlyoffice
i hope that when i install onlyoffice on nixos in the near future, i don’t have to manually set font location anymore.