From 266244cd6b710bb7779f485e6dfdc567c365c729 Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 23 Feb 2025 03:02:51 -0600 Subject: [PATCH] fonts: use rsync to copy fonts Signed-off-by: Myned --- options/custom/settings/fonts.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/options/custom/settings/fonts.nix b/options/custom/settings/fonts.nix index cc24ddb..a0b7375 100644 --- a/options/custom/settings/fonts.nix +++ b/options/custom/settings/fonts.nix @@ -6,6 +6,8 @@ }: with lib; let cfg = config.custom.settings.fonts; + + rsync = getExe pkgs.rsync; in { options.custom.settings.fonts = { enable = mkOption {default = false;}; @@ -99,7 +101,7 @@ in { # 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 ${rsync} --recursive --copy-links \ /run/current-system/sw/share/fonts "$XDG_DATA_HOME/" ''; };