summaryrefslogtreecommitdiff
path: root/modules/basic-tools/fzf.nix
diff options
context:
space:
mode:
authorGrisha Shipunov2025-01-11 03:55:19 +0100
committerGrisha Shipunov2025-01-11 03:55:19 +0100
commit62e2519639faa250f43f9e80e69906a59d07a44e (patch)
tree08d662d7674904d566d2dd7ccf85affb9ddd7cd9 /modules/basic-tools/fzf.nix
parent595d4935de99cc2ff10be9eaddac498c7c38489f (diff)
delete legacy stuff and reformat
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
+ { };
}