summaryrefslogtreecommitdiff
path: root/modules/basic-tools/fzf.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/basic-tools/fzf.nix')
-rw-r--r--modules/basic-tools/fzf.nix26
1 files changed, 18 insertions, 8 deletions
diff --git a/modules/basic-tools/fzf.nix b/modules/basic-tools/fzf.nix
index 6fc84fe..8ad1b92 100644
--- a/modules/basic-tools/fzf.nix
+++ b/modules/basic-tools/fzf.nix
@@ -1,4 +1,10 @@
-{ lib, config, pkgs, ... }: {
+{
+ lib,
+ config,
+ pkgs,
+ ...
+}:
+{
environment = {
systemPackages = [ pkgs.fzf ];
@@ -8,11 +14,15 @@
};
};
# integrate fzf into shell, >23.05 only
- programs = with lib;
- if (toInt (elemAt (splitVersion config.system.nixos.release) 0) >= 23) then {
- fzf = {
- keybindings = true;
- fuzzyCompletion = true;
- };
- } else { };
+ programs =
+ with lib;
+ if (toInt (elemAt (splitVersion config.system.nixos.release) 0) >= 23) then
+ {
+ fzf = {
+ keybindings = true;
+ fuzzyCompletion = true;
+ };
+ }
+ else
+ { };
}