diff options
Diffstat (limited to 'share/home/tofi.nix')
| -rw-r--r-- | share/home/tofi.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/share/home/tofi.nix b/share/home/tofi.nix index b53aca4..b0a7a89 100644 --- a/share/home/tofi.nix +++ b/share/home/tofi.nix @@ -1,7 +1,18 @@ # IMPORTANT: this is the config for a custom module that's located at # /share/hm-modules/tofi.nix. In order to use this config you have to also # import that module. -{ ... }: { +{ lib, config, ... }: { + + # 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 = { + regenerateTofiCache = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + tofi_cache=${config.xdg.cacheHome}/tofi-drun + [[ -f "$tofi_cache" ]] && rm "$tofi_cache" + ''; + }; + programs.tofi = { enable = true; settings = { |
