nixos-config/home-manager/modules/rofi/default.nix
Erwin Boskma 4cd0f83ce8
Some checks failed
/ check (push) Failing after 2m46s
Run nixfmt
2024-02-05 11:46:52 +01:00

46 lines
976 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;
};
terminal = mkOption {
description = "Path to the terminal program rofi will use to execute console applications";
type = types.path;
};
};
config = mkIf cfg.enable {
programs.rofi = {
enable = true;
package = cfg.package;
theme = ./launch.rasi;
terminal = cfg.terminal;
extraConfig = {
modi = "drun";
font = "Iosevka 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";
};
};
}