dotfiles/home/modules/tui/nix-index.nix

15 lines
318 B
Nix
Raw Normal View History

2024-12-20 01:30:06 +00:00
{ lib, config, ... }:
2023-11-05 03:26:20 +00:00
let
inherit (lib) mkIf;
2024-12-20 01:30:06 +00:00
hasPackage = pname:
lib.any (p: p ? pname && p.name == pname) config.home.packages;
2023-11-05 03:26:20 +00:00
hasFish = hasPackage "fish";
2024-12-20 01:30:06 +00:00
in {
2023-11-05 03:26:20 +00:00
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
}