21 lines
338 B
Nix
21 lines
338 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.features.cli.fzf;
|
|
in
|
|
{
|
|
options.features.cli.fzf.enable = mkEnableOption "Enable fzf";
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.fzf = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
FZF_DEFAULT_OPTS = "--reverse";
|
|
};
|
|
};
|
|
}
|