29 lines
747 B
Nix
29 lines
747 B
Nix
{ user, home }:
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
hmConfig = config.home-manager.users.${user};
|
|
in
|
|
{
|
|
environment.persistence."/persist/cache"."${home}/.cache/rofi" = { };
|
|
|
|
home-manager.users.${user} = {
|
|
programs.rofi = {
|
|
enable = true;
|
|
package = pkgs.rofi-wayland;
|
|
};
|
|
|
|
home.file.${hmConfig.programs.rofi.configPath}.enable = false;
|
|
theme.template.".config/rofi/config.rasi".source = ./theme.rasi;
|
|
|
|
wayland.windowManager.hyprland.settings.bind = [
|
|
"$mod, r, exec, ${lib.meta.getExe hmConfig.programs.rofi.finalPackage} -modes drun -show drun -run-command \"uwsm app -- {cmd}\""
|
|
"Alt, Tab, exec, ${lib.meta.getExe hmConfig.programs.rofi.finalPackage} -modes window -show window"
|
|
];
|
|
};
|
|
}
|