2024-10-20 00:30:58 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.features.desktop.rofi;
|
|
|
|
in {
|
|
|
|
options.features.desktop.rofi.enable = mkEnableOption "enable rofi";
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.rofi = with pkgs; {
|
|
|
|
enable = true;
|
|
|
|
package = rofi.override {
|
|
|
|
plugins = [
|
|
|
|
rofi-calc
|
|
|
|
rofi-emoji
|
2025-01-09 10:04:13 +01:00
|
|
|
stable.rofi-file-browser
|
2024-10-20 00:30:58 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
pass = {
|
|
|
|
enable = true;
|
|
|
|
package = rofi-pass-wayland;
|
|
|
|
};
|
|
|
|
terminal = "\${pkgs.kitty}/bin/kitty";
|
|
|
|
font = "Fira Code";
|
|
|
|
extraConfig = {
|
|
|
|
show-icons = true;
|
|
|
|
disable-history = false;
|
|
|
|
modi = "drun,calc,emoji,filebrowser";
|
|
|
|
kb-primary-paste = "Control+V,Shift+Insert";
|
|
|
|
kb-secondary-paste = "Control+v,Insert";
|
|
|
|
};
|
|
|
|
theme = "dracula";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|