From 5d401580d016d90a36d979fd0d7f2a83ccb49cc3 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Thu, 11 Apr 2024 21:04:40 +0200 Subject: Fix tofi config activation --- share/cfg/tofi.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') 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" -- cgit v1.3.1