Personal Nix setup

Add global excludes file for ripgrep

Changed files
+17
home
base
+17
home/base/tools.nix
···
{ lib, pkgs, ... }:
with lib;
{
home = {
packages = with pkgs; [
···
shellAliases = {
http = "xh";
};
};
}
···
{ lib, pkgs, ... }:
with lib;
+
let
+
rgExcludesFile = pkgs.writeTextFile {
+
name = ".rgignore";
+
text = ''
+
*~
+
*.map
+
'';
+
};
+
in
{
home = {
packages = with pkgs; [
···
shellAliases = {
http = "xh";
};
+
};
+
+
programs.ripgrep = {
+
enable = true;
+
arguments = [
+
"--ignore-file=${rgExcludesFile}"
+
"--smart-case"
+
];
};
}