aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/cfg/tofi.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/cfg/tofi.nix b/share/cfg/tofi.nix
index e4f2ff9..5c008b6 100644
--- a/share/cfg/tofi.nix
+++ b/share/cfg/tofi.nix
@@ -6,7 +6,7 @@
# Tofi's cache seems to get messed up sometimes, so we regenerate it when
# building the system.
# https://github.com/philj56/tofi/issues/115#issuecomment-1701748297
- home.activation = {
+ home.activation = lib.mkIf config.programs.tofi.enable {
regenerateTofiCache = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
tofi_cache=${config.xdg.cacheHome}/tofi-drun
[[ -f "$tofi_cache" ]] && rm "$tofi_cache"