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

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;
};
};
}