mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-19 14:18: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
@@ -12,6 +12,9 @@ in
|
||||
fonts.enable = lib.mkEnableOption "Rich Fonts - Add NerdFonts Icons, emojis & CJK Fonts";
|
||||
};
|
||||
|
||||
# This is the single font package list for the host and its Nixpak sandboxes:
|
||||
# Nixpak GUI wrappers bind the generated host fontconfig rather than
|
||||
# installing their own fonts.
|
||||
config.fonts.packages =
|
||||
with pkgs;
|
||||
lib.mkIf cfg.fonts.enable [
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
# packages = [ ... ];
|
||||
|
||||
fontconfig = {
|
||||
# User defined default fonts
|
||||
# User defined default fonts. Nixpak GUI wrappers bind this generated
|
||||
# host configuration into their sandboxes, so host and sandboxed apps
|
||||
# share one font stack; do not duplicate these families there.
|
||||
# https://catcat.cc/post/2021-03-07/
|
||||
defaultFonts = {
|
||||
serif = [
|
||||
|
||||
Reference in new issue
Block a user