2024-02-05 11:46:52 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
2022-03-01 22:19:03 +01:00
|
|
|
}:
|
2024-02-05 11:46:52 +01:00
|
|
|
with lib;
|
|
|
|
let
|
2022-03-01 22:19:03 +01:00
|
|
|
cfg = config.eboskma.programs.rofi;
|
2022-04-27 00:21:19 +02:00
|
|
|
in
|
|
|
|
{
|
2022-11-11 11:54:21 +01:00
|
|
|
options.eboskma.programs.rofi = {
|
|
|
|
enable = mkEnableOption "Enable rofi";
|
|
|
|
package = mkOption {
|
|
|
|
description = "The rofi package to use";
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.rofi;
|
|
|
|
};
|
2023-04-25 09:48:32 +02:00
|
|
|
terminal = mkOption {
|
|
|
|
description = "Path to the terminal program rofi will use to execute console applications";
|
|
|
|
type = types.path;
|
|
|
|
};
|
2022-11-11 11:54:21 +01:00
|
|
|
};
|
2021-11-12 17:10:17 +01:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.rofi = {
|
|
|
|
enable = true;
|
2023-05-10 15:12:54 +02:00
|
|
|
package = cfg.package;
|
2021-11-12 17:10:17 +01:00
|
|
|
theme = ./launch.rasi;
|
2023-04-25 09:48:32 +02:00
|
|
|
terminal = cfg.terminal;
|
2021-11-22 08:04:54 +01:00
|
|
|
extraConfig = {
|
|
|
|
modi = "drun";
|
2023-05-10 15:12:54 +02:00
|
|
|
font = "Iosevka Nerd Font 10";
|
2021-11-22 08:04:54 +01:00
|
|
|
display-drun = "";
|
|
|
|
sidebar-mode = false;
|
|
|
|
show-icons = true;
|
|
|
|
icon-theme = "Paper";
|
|
|
|
};
|
2021-11-12 17:10:17 +01:00
|
|
|
};
|
2021-11-18 15:02:12 +01:00
|
|
|
|
2021-11-22 08:04:54 +01:00
|
|
|
home.file.rofi_theme_power = {
|
2021-11-18 15:02:12 +01:00
|
|
|
source = ./power.rasi;
|
2021-11-22 08:04:54 +01:00
|
|
|
target = ".local/share/rofi/themes/power.rasi";
|
2021-11-18 15:02:12 +01:00
|
|
|
};
|
2021-11-12 17:10:17 +01:00
|
|
|
};
|
|
|
|
}
|