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

30 lines
561 B
Nix
Raw 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";
theme = "gruvbox-dark-hard";
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
};
};
};
}