diff --git a/overlays/default.nix b/overlays/default.nix index 1bb46f02..77cc45d9 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,6 +1,7 @@ { imports = [ ./alejandra.nix + ./fzf.nix ./zola.nix ]; } diff --git a/overlays/fzf.nix b/overlays/fzf.nix new file mode 100644 index 00000000..6bb43817 --- /dev/null +++ b/overlays/fzf.nix @@ -0,0 +1,14 @@ +{ + nixpkgs.overlays = [ + (final: prev: { + fzf = prev.fzf.overrideAttrs (oldAttrs: { + postInstall = (oldAttrs.postInstall or "") + '' + cat << EOF > $out/share/fish/vendor_conf.d/load-fzf-key-bindings.fish + status is-interactive; or exit 0 + fzf_key_bindings + EOF + ''; + }); + }) + ]; +}