diff --git a/modules/programs/bat.nix b/modules/programs/bat.nix index 6890a28a8..ccef131e5 100644 --- a/modules/programs/bat.nix +++ b/modules/programs/bat.nix @@ -72,8 +72,11 @@ in { (name: body: { "bat/themes/${name}.tmTheme" = { text = body; }; })); home.activation.batCache = hm.dag.entryAfter [ "linkGeneration" ] '' - $VERBOSE_ECHO "Rebuilding bat theme cache" - $DRY_RUN_CMD ${lib.getExe package} cache --build + ( + export XDG_CACHE_HOME=${escapeShellArg config.xdg.cacheHome} + $VERBOSE_ECHO "Rebuilding bat theme cache" + $DRY_RUN_CMD ${lib.getExe package} cache --build + ) ''; }; }