feat: add nix-index-database

This commit is contained in:
Swarsel 2024-07-19 14:30:07 +02:00
parent 6ea2eb0782
commit 193cf5748e
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
6 changed files with 196 additions and 41 deletions

View file

@ -546,11 +546,26 @@
yt-dlp.enable = true;
mpv.enable = true;
jq.enable = true;
nix-index.enable = true;
ripgrep.enable = true;
pandoc.enable = true;
fzf.enable = true;
zoxide.enable = true;
nix-index = let
command-not-found = pkgs.runCommandLocal "command-not-found.sh" {} ''
mkdir -p $out/etc/profile.d
substitute ${../../scripts/command-not-found.sh} \
$out/etc/profile.d/command-not-found.sh \
--replace @nix-locate@ ${pkgs.nix-index}/bin/nix-locate \
--replace @tput@ ${pkgs.ncurses}/bin/tput
'';
in {
enable = true;
package = pkgs.symlinkJoin {
name = "nix-index";
paths = [command-not-found];
};
};
};
programs.password-store = {