You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
466 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.x-banananetwork.improvedDefaults;
in
{
config = lib.mkIf cfg.enable (
let
nixI = config.programs.nix-index;
shellInt = builtins.any (x: x) (
with nixI;
[
enableBashIntegration
enableZshIntegration
]
);
nixIclash = nixI.enable && shellInt;
in
{
programs.command-not-found.enable = lib.mkIf nixIclash false;
}
);
}