Add nix-index

This commit is contained in:
ItsDrike 2024-04-15 23:10:06 +02:00
parent 4eb78554dd
commit 662657dadb
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 16 additions and 0 deletions

View file

@ -12,5 +12,6 @@ _: {
./btop.nix
./bottom.nix
./bat.nix
./nix-index.nix
];
}

View 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;
};
}