nix-files/hosts/common/programs/ripgrep.nix

21 lines
537 B
Nix

{ ... }:
{
sane.programs.ripgrep = {
sandbox.method = "bwrap";
sandbox.autodetectCliPaths = true;
sandbox.whitelistPwd = true;
sandbox.extraHomePaths = [
# let it follow symlinks to non-sensitive data
".persist/ephemeral"
".persist/plaintext"
];
# .ignore file is read by ripgrep (rg), silver searcher (ag), maybe others.
# ignore translation files by default when searching, as they tend to have
# a LOT of duplicate text.
fs.".ignore".symlink.text = ''
po/
'';
};
}