1
1
Fork 0

fonts: work around fonts for some apps

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-02-22 12:55:24 -06:00
parent 22a14abbd6
commit f33c5896d8
Signed by: Myned
GPG key ID: C7224454F7881A34

View file

@ -90,6 +90,20 @@ in {
}; };
}; };
home-manager.users.${config.custom.username}.fonts.fontconfig.defaultFonts = config.fonts.fontconfig.defaultFonts; home-manager.sharedModules = [
{
# Inherit from system module
fonts.fontconfig.defaultFonts = config.fonts.fontconfig.defaultFonts;
# HACK: Some applications do not support fontconfig nor symlinks, so copy fonts to user directory
# https://github.com/ONLYOFFICE/DocumentServer/issues/1859 et al.
home.activation = {
copy-fonts = lib.home-manager.hm.dag.entryAfter ["writeBoundary"] ''
run cp --recursive --dereference --force \
/run/current-system/sw/share/fonts "$XDG_DATA_HOME/"
'';
};
}
];
}; };
} }