{ username ? throw "username argument is required", }: { config, lib, pkgs, ... }: let hmConfig = config.home-manager.users.${username}; in { environment.persistence."/cache".users.${username}.directories = [ "${hmConfig.xdg.relativeCacheHome}/rofi" ]; home-manager.users.${username} = { programs.rofi = { enable = true; package = pkgs.rofi-wayland; font = builtins.head hmConfig.theme.font.monospace.names; }; wayland.windowManager.hyprland.settings.bind = [ "$mod, r, exec, ${lib.meta.getExe pkgs.rofi-wayland} -cache-dir ${hmConfig.xdg.cacheHome}/rofi -show drun" ]; }; }