stylix/modules/fzf/hm.nix
Anton Mosich 1ff9d37d27
fzf: use Home Manager color options (#454)
home-manager provides a programs.fzf.colors option to provide colors.
This module basically reimplemented the logic Home Manager has as well.
2024-06-27 22:59:30 +01:00

23 lines
566 B
Nix

{ config, lib, ... }:
{
options.stylix.targets.fzf = {
enable = config.lib.stylix.mkEnableTarget "Fzf" true;
};
config = lib.mkIf (config.stylix.enable && config.stylix.targets.fzf.enable) {
programs.fzf.colors = with config.lib.stylix.colors.withHashtag; {
"bg" = base00;
"bg+" = base01;
"fg" = base04;
"fg+" = base06;
"header" = base0D;
"hl" = base0D;
"hl+" = base0D;
"info" = base0A;
"marker" = base0C;
"pointer" = base0C;
"prompt" = base0A;
"spinner" = base0C;
};
};
}