ONLYOFFICE: Difference between revisions
imported>Onny Add initial page |
imported>Onny Add troubleshooting section |
||
Line 8: | Line 8: | ||
environment.systemPackages = [ pkgs.onlyoffice-bin ]; | environment.systemPackages = [ pkgs.onlyoffice-bin ]; | ||
</nowiki>}} | </nowiki>}} | ||
== Troubleshooting == | |||
=== Install and use missing corefonts === | |||
According to one [https://github.com/ONLYOFFICE/DocumentServer/issues/1859 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 | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
# Allow installation of unfree corefonts package | |||
nixpkgs.config.allowUnfreePredicate = pkg: | |||
builtins.elem (lib.getName pkg) [ "corefonts" ]; | |||
fonts.fonts = with pkgs; [ | |||
corefonts | |||
]; | |||
</nowiki>}} | |||
<syntaxhighlight lang="console"> | |||
# mkdir -p ~/.local/share/fonts | |||
Query store path to the corefonts package | |||
# NIXPKGS_ALLOW_UNFREE=1 nix-store --query --outputs $(nix-instantiate '<nixpkgs>' -A corefonts) | |||
Change the store path according to result of the command above | |||
# cp /nix/store/ssw7d3cl2dzps6y1c88c01xclsigmjqf-corefonts-1/share/fonts/truetype/* ~/.local/share/fonts/ | |||
# chmod 644 ~/.local/share/fonts/* | |||
</syntaxhighlight> | |||
== See also == | == See also == |