bat: generate cache file in XDG cache home

Fixes #4345
This commit is contained in:
Robert Helgesson 2023-08-16 09:02:23 +02:00
parent ca4126e3c5
commit ea59b79f31
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

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