22 lines
535 B
Nix
22 lines
535 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.desktop.rofi;
|
|
in {
|
|
options.modules.desktop.rofi = {
|
|
enable = mkEnableOption "Enable rofi, a window switcher, run dialog and dmenu replacement";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
hm.programs.rofi = {
|
|
enable = true;
|
|
package = pkgs.rofi-wayland;
|
|
font = with config.modules.desktop.fonts.fonts.monospace; "${family} ${toString size}";
|
|
extraConfig = {
|
|
show-icons = true;
|
|
};
|
|
theme = ../../config/rofi.rasi;
|
|
};
|
|
};
|
|
} |