mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-10 04:42:17 +00:00
12 lines
274 B
Nix
12 lines
274 B
Nix
{ 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;
|
|
};
|
|
}
|