NixOS-Vista/nixosVista/homeManager/wofi/config.nix
2026-02-12 15:32:45 +01:00

36 lines
728 B
Nix

{
config,
lib,
nixosVista,
...
}: let
root = nixosVista;
cfg = root.wofi;
############################################################
# Base Configuration
############################################################
baseSettings = {
term = root.terminal.command;
show_all = true;
gtk_dark = false;
location = "center";
insensitive = false;
allow_markup = true;
allow_images = true;
line_wrap = "word";
lines = 8;
width = "30%";
hide_scroll = true;
show = "drun";
};
finalSettings = baseSettings // cfg.settings.extra;
in {
programs.wofi = lib.mkIf (cfg.enable && cfg.style.preset != "none") {
enable = true;
settings = finalSettings;
};
}