be a bit smarter about fzf module
This commit is contained in:
parent
c16ef44b2d
commit
a2732c6e6a
4 changed files with 18 additions and 12 deletions
|
@ -1,6 +1,10 @@
|
|||
{ lib, config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./fzf.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
bat
|
||||
fd
|
10
modules/basic-tools/fzf.nix
Normal file
10
modules/basic-tools/fzf.nix
Normal 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 { };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue