dotfiles/home/features/cli/nix-index.nix

15 lines
320 B
Nix
Raw Permalink Normal View History

2023-11-05 03:26:20 +00:00
{ pkgs, lib, config, ... }:
let
inherit (lib) mkIf;
hasPackage = pname: lib.any (p: p ? pname && p.name == pname) config.home.packages;
hasFish = hasPackage "fish";
in
{
programs.nix-index = {
enable = true;
enableFishIntegration = mkIf hasFish true;
};
2023-12-10 21:06:51 +00:00
programs.command-not-found.enable = false;
2023-11-05 03:26:20 +00:00
}