1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 06:59:45 +01:00

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; }; }));
home.activation.batCache = hm.dag.entryAfter [ "linkGeneration" ] ''
(
export XDG_CACHE_HOME=${escapeShellArg config.xdg.cacheHome}
$VERBOSE_ECHO "Rebuilding bat theme cache"
$DRY_RUN_CMD ${lib.getExe package} cache --build
)
'';
};
}