1
1
Fork 0

fonts: use rsync to copy fonts

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-02-23 03:02:51 -06:00
parent e1c8b471e1
commit 266244cd6b
Signed by: Myned
GPG key ID: C7224454F7881A34

View file

@ -6,6 +6,8 @@
}: }:
with lib; let with lib; let
cfg = config.custom.settings.fonts; cfg = config.custom.settings.fonts;
rsync = getExe pkgs.rsync;
in { in {
options.custom.settings.fonts = { options.custom.settings.fonts = {
enable = mkOption {default = false;}; enable = mkOption {default = false;};
@ -99,7 +101,7 @@ in {
# https://github.com/ONLYOFFICE/DocumentServer/issues/1859 et al. # https://github.com/ONLYOFFICE/DocumentServer/issues/1859 et al.
home.activation = { home.activation = {
copy-fonts = lib.home-manager.hm.dag.entryAfter ["writeBoundary"] '' copy-fonts = lib.home-manager.hm.dag.entryAfter ["writeBoundary"] ''
run cp --recursive --dereference --force \ run ${rsync} --recursive --copy-links \
/run/current-system/sw/share/fonts "$XDG_DATA_HOME/" /run/current-system/sw/share/fonts "$XDG_DATA_HOME/"
''; '';
}; };