{ config, lib, pkgs, ... }: let inherit (lib) mkIf mkOption types; in { options.smayzy.fzf.enable = mkOption { type = types.bool; default = false; description = "use fzf"; }; config = mkIf config.smayzy.fzf.enable { environment.systemPackages = with pkgs; [ fzf ]; programs.fzf.keybindings = true; }; }