2025-01-11 03:55:19 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2023-01-24 14:27:50 +01:00
|
|
|
|
|
|
|
environment = {
|
|
|
|
systemPackages = [ pkgs.fzf ];
|
|
|
|
shellAliases = {
|
|
|
|
vf = "$EDITOR $(fzf)";
|
|
|
|
vff = "$EDITOR $(ls|fzf)";
|
|
|
|
};
|
|
|
|
};
|
2023-01-22 23:07:29 +01:00
|
|
|
# integrate fzf into shell, >23.05 only
|
2025-01-11 03:55:19 +01:00
|
|
|
programs =
|
|
|
|
with lib;
|
|
|
|
if (toInt (elemAt (splitVersion config.system.nixos.release) 0) >= 23) then
|
|
|
|
{
|
|
|
|
fzf = {
|
|
|
|
keybindings = true;
|
|
|
|
fuzzyCompletion = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{ };
|
2023-01-22 23:07:29 +01:00
|
|
|
}
|