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

30 lines
558 B
Nix
Raw Permalink Normal View History

2024-08-03 03:31:39 +00:00
{
config,
lib,
2024-08-04 06:28:45 +00:00
pkgs,
2024-08-03 03:31:39 +00:00
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";
2024-08-12 02:21:41 +00:00
catppuccin.enable = true;
2024-08-04 06:28:45 +00:00
plugins = [pkgs.rofi-emoji];
2024-08-03 03:31:39 +00:00
extraConfig = {
show-icons = true;
2024-08-04 06:28:45 +00:00
modi = "window,run,ssh,emoji";
2024-08-03 03:31:39 +00:00
};
};
};
}