be a bit smarter about fzf module

This commit is contained in:
Grigory Shipunov 2023-01-22 23:07:29 +01:00
parent c16ef44b2d
commit a2732c6e6a
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
4 changed files with 18 additions and 12 deletions

View file

@ -1,6 +1,10 @@
{ lib, config, pkgs, inputs, ... }:
{
imports = [
./fzf.nix
];
environment.systemPackages = with pkgs; [
bat
fd

View file

@ -0,0 +1,10 @@
{ lib, config, ... }: {
# integrate fzf into shell, >23.05 only
programs =
if (lib.toInt (lib.elemAt (lib.splitVersion config.system.nixos.release) 0) >= 23) then {
fzf = {
keybindings = true;
fuzzyCompletion = true;
};
} else { };
}