dotfiles/modules/home/programs/rofi/default.nix

30 lines
558 B
Nix

{
config,
lib,
pkgs,
namespace,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.programs.rofi;
in {
options.${namespace}.programs.rofi = {
enable = mkEnableOption "rofi";
};
config = mkIf cfg.enable {
programs.rofi = {
enable = true;
# TODO: How to ensure this font is installed?
font = "Hack Nerd Font 10";
catppuccin.enable = true;
plugins = [pkgs.rofi-emoji];
extraConfig = {
show-icons = true;
modi = "window,run,ssh,emoji";
};
};
};
}