From 7b5bf013daf1038cc11872868e6822eb14eb2861 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Thu, 7 Mar 2024 00:34:30 +0100 Subject: Slim down client machines, fix some issues - completely remove emacs module - use nixpkgs hyprland package instead of the flake - fix tofi desktop file cache issue - update flake lock - wonderland: remove madhatter - remove hyprdesktop module from clients' sharedModules and move it into the users' individual modules wherever it's needed --- share/home/tofi.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'share/home/tofi.nix') 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 = { -- cgit v1.3.1