Fonts: Difference between revisions
imported>Arashsm79 Add a workaround to Flatpak applications not finding system fonts. Related issue: https://github.com/NixOS/nixpkgs/issues/119433 |
imported>Arashsm79 m Fix a typo. |
||
| Line 123: | Line 123: | ||
fonts.fontDir.enable = true; | fonts.fontDir.enable = true; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Then, create a symlink in <code>XDG_DATA_HOME/fonts</code> | Then, create a symlink in <code>XDG_DATA_HOME/fonts</code> pointing to <code>/run/current-system/sw/share/X11/fonts</code>, e. g. | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
$ ln -s /run/current-system/sw/share/X11/fonts ~/.local/share/fonts | $ ln -s /run/current-system/sw/share/X11/fonts ~/.local/share/fonts | ||