fix(nix): harden fontconfig compatibility across host setups

This commit is contained in:
Nicolai Bruns committed 2026-10-20 13:31:02 +02:00
1 parent ec85cfb96b
commit 6a96869db8
4 files changed
+131 -6

No files matched your search

+6
View File
@@ -215,6 +215,12 @@ the host's `/usr/share/fonts`, which the FHS environment replaces. Fonts in your
user font directories remain available. This also prevents an icon-only user
font inventory from becoming the only fallback for ordinary text.
Inherited `FONTCONFIG_PATH` and `FONTCONFIG_SYSROOT` overrides are cleared inside
the FHS environment so foreign include paths or an invalid sysroot cannot hide
the packaged fonts. Custom XDG font/configuration directories and legacy
`~/.fonts` remain supported, including paths with spaces. The host configuration
and user font files are not modified.
To check font availability without starting Darling or Riot:
```sh