diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-03-07 00:34:30 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-03-07 00:34:30 +0100 |
| commit | 7b5bf013daf1038cc11872868e6822eb14eb2861 (patch) | |
| tree | 194c639a8efb86c94165fd84dbe8948bbe804483 /share/home/tofi.nix | |
| parent | 26b851c43bd88a9626fc9e18a4a9d0b235b3f2a2 (diff) | |
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
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 = { |
