fonts: work around fonts for some apps
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
22a14abbd6
commit
f33c5896d8
1 changed files with 15 additions and 1 deletions
|
@ -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/"
|
||||
'';
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue