mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 23:29:46 +01:00
3b799f6ea4
`nix-index` is a tool to quickly locate the package providing a certain file in `nixpkgs`. It indexes built derivations found in binary caches. This module adds the shell integration for its `command-not-found` script for interactive shells.
26 lines
752 B
Nix
26 lines
752 B
Nix
{ pkgs, ... }: {
|
|
config = {
|
|
programs.bash.enable = true;
|
|
programs.fish.enable = true;
|
|
programs.zsh.enable = true;
|
|
|
|
programs.command-not-found.enable = true;
|
|
|
|
nixpkgs.overlays =
|
|
[ (self: super: { zsh = pkgs.writeScriptBin "dummy-zsh" ""; }) ];
|
|
|
|
programs.nix-index.enable = true;
|
|
|
|
# 'command-not-found' does not have a 'fish' integration
|
|
test.asserts.assertions.expected = [
|
|
''
|
|
The 'programs.command-not-found.enable' option is mutually exclusive
|
|
with the 'programs.nix-index.enableBashIntegration' option.
|
|
''
|
|
''
|
|
The 'programs.command-not-found.enable' option is mutually exclusive
|
|
with the 'programs.nix-index.enableZshIntegration' option.
|
|
''
|
|
];
|
|
};
|
|
}
|