mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-23 20:52:18 +00:00
14 lines
318 B
Nix
14 lines
318 B
Nix
{ 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;
|
|
};
|
|
|
|
programs.command-not-found.enable = false;
|
|
}
|