Files
cnix/modules/home/programs/rofi/default.nix
2025-01-02 20:38:08 +01:00

28 lines
555 B
Nix

{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.home.programs.rofi;
in {
options = {
home.programs.rofi.enable = mkEnableOption "Enables firefox";
};
config = mkIf cfg.enable {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
theme = ./style.rasi;
font = "Input Mono Narrow Light 12";
extraConfig = {
show-icons = true;
drun-display-format = "{name}";
disable-history = false;
sidebar-mode = false;
};
};
};
}