diff options
author | Daniel Nagy <danielnagy@posteo.de> | 2022-12-03 16:15:00 +0100 |
---|---|---|
committer | Daniel Nagy <danielnagy@posteo.de> | 2022-12-03 20:00:00 +0100 |
commit | 3126eb762147bc32c23d7511992157c0ea5bb71c (patch) | |
tree | d492c0ec33118b66a17265ecd3b626de1fa79d0a /nixos/modules/programs | |
parent | f8be62c5ced7acd1f0ad03b283d3a24f0604557c (diff) |
nixos/fzf: refactor two options
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/fzf.nix | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/nixos/modules/programs/fzf.nix b/nixos/modules/programs/fzf.nix index 0452bf4262276..eda4eacde4ac9 100644 --- a/nixos/modules/programs/fzf.nix +++ b/nixos/modules/programs/fzf.nix @@ -5,18 +5,8 @@ let in { options = { programs.fzf = { - fuzzyCompletion = mkOption { - type = types.bool; - description = lib.mdDoc "Whether to use fzf for fuzzy completion"; - default = false; - example = true; - }; - keybindings = mkOption { - type = types.bool; - description = lib.mdDoc "Whether to set up fzf keybindings"; - default = false; - example = true; - }; + fuzzyCompletion = mkEnableOption (mdDoc "fuzzy completion with fzf"); + keybindings = mkEnableOption (mdDoc "fzf keybindings"); }; }; config = { |