home: extract fzf configuration

This commit is contained in:
Bruno BELANYI 2023-04-26 20:48:00 +01:00
parent d8c841333b
commit 1d7b9b99db
3 changed files with 16 additions and 6 deletions

View file

@ -10,6 +10,7 @@
./feh
./firefox
./flameshot
./fzf
./gammastep
./gdb
./git

15
home/fzf/default.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
let
cfg = config.my.home.fzf;
in
{
options.my.home.fzf = with lib; {
enable = my.mkDisableOption "fzf configuration";
};
config = lib.mkIf cfg.enable {
programs.fzf = {
enable = true;
};
};
}

View file

@ -105,12 +105,6 @@ in
enableVteIntegration = true;
};
# Fuzzy-wuzzy
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
programs.dircolors = {
enable = true;
};