From bd99a513b391cee5b5fd63a2716778c13f278bfd Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 8 Mar 2025 12:42:00 -0600 Subject: [PATCH] fonts: work around rsync directory perms 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 a0b7375..84a581b 100644 --- a/options/custom/settings/fonts.nix +++ b/options/custom/settings/fonts.nix @@ -100,8 +100,10 @@ in { # 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 = { + # BUG: rsync sets directory permissions too early + # https://github.com/RsyncProject/rsync/issues/609 copy-fonts = lib.home-manager.hm.dag.entryAfter ["writeBoundary"] '' - run ${rsync} --recursive --copy-links \ + run ${rsync} --recursive --copy-links --times \ /run/current-system/sw/share/fonts "$XDG_DATA_HOME/" ''; };