fix(nixpak): use host fontconfig in sandboxes (#496)

Reuse the host fontconfig for Nixpak GUI apps so host and sandboxed apps resolve fonts consistently.

Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-11-01 11:26:25 +08:00
1 parent d54b49b799
commit 1a939e2c9a
5 files changed
+22 -16

No files matched your search

+4
View File
@@ -44,6 +44,8 @@ let
|| path == "/run/dbus"
|| path == "/run/dbus/system_bus_socket";
hasHostFontconfig = app: lib.elem [ "/etc/static/fonts" "/etc/fonts" ] app.bubblewrap.bind.ro;
hasPrivateTmp =
app:
let
@@ -117,6 +119,8 @@ let
"${name}/noBroadKeyring" =
!lib.any (argument: argument == "--talk=org.freedesktop.secrets") app.dbus.args;
"${name}/noForbiddenMounts" = !lib.any forbiddenMountFor (mountStrings app);
"${name}/hostFontconfig" = hasHostFontconfig app;
"${name}/noSandboxFonts" = !app.fonts.enable;
"${name}/privateTmp" = hasPrivateTmp app;
"${name}/network" = networkCheck app spec.network;
"${name}/x11" = app.bubblewrap.sockets.x11 == (spec.x11 or false);