mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-05 20:16:17 +01:00
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:
1 parent
d54b49b799
commit
1a939e2c9a
5 files changed
+22
-16
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user