mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 03:34:35 +00:00
Add nix-index
This commit is contained in:
parent
4eb78554dd
commit
662657dadb
|
@ -12,5 +12,6 @@ _: {
|
|||
./btop.nix
|
||||
./bottom.nix
|
||||
./bat.nix
|
||||
./nix-index.nix
|
||||
];
|
||||
}
|
||||
|
|
15
home/programs/terminal/tools/nix-index.nix
Normal file
15
home/programs/terminal/tools/nix-index.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, ... }: {
|
||||
programs = {
|
||||
# nix-index is a file database for nixpkgs
|
||||
# this provides `nix-locate` command.
|
||||
nix-index = {
|
||||
enable = true;
|
||||
enableBashIntegration = config.programs.bash.enable;
|
||||
enableZshIntegration = config.programs.zsh.enable;
|
||||
};
|
||||
|
||||
# Allows interactive shells to show which Nix package (if any)
|
||||
# provides a missing command.
|
||||
command-not-found.enable = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue