40 lines
843 B
Nix
40 lines
843 B
Nix
{ lib
|
|
, pkgs
|
|
, config
|
|
, ...
|
|
}:
|
|
with lib; let
|
|
cfg = config.eboskma.programs.rofi;
|
|
in
|
|
{
|
|
options.eboskma.programs.rofi = {
|
|
enable = mkEnableOption "Enable rofi";
|
|
package = mkOption {
|
|
description = "The rofi package to use";
|
|
type = types.package;
|
|
default = pkgs.rofi;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.rofi = {
|
|
enable = true;
|
|
package = pkgs.rofi-wayland;
|
|
theme = ./launch.rasi;
|
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
|
extraConfig = {
|
|
modi = "drun";
|
|
font = "Overpass Nerd Font 10";
|
|
display-drun = "";
|
|
sidebar-mode = false;
|
|
show-icons = true;
|
|
icon-theme = "Paper";
|
|
};
|
|
};
|
|
|
|
home.file.rofi_theme_power = {
|
|
source = ./power.rasi;
|
|
target = ".local/share/rofi/themes/power.rasi";
|
|
};
|
|
};
|
|
}
|