ripgrep: move options out of assorted.nix into its own file

This commit is contained in:
Colin 2024-01-29 12:57:56 +00:00
parent 0454abacd9
commit d3f7a036ce
2 changed files with 13 additions and 11 deletions

View File

@ -305,11 +305,6 @@ in
requests
]);
ripgrep.sandbox.method = "landlock";
ripgrep.sandbox.wrapperType = "wrappedDerivation"; # slow to build
ripgrep.sandbox.autodetectCliPaths = true;
ripgrep.sandbox.whitelistPwd = true;
rsync.sandbox.method = "bwrap"; # TODO:sandbox: untested
rsync.sandbox.autodetectCliPaths = true;

View File

@ -1,9 +1,16 @@
{ ... }:
{
# .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.
sane.programs.ripgrep.fs.".ignore".symlink.text = ''
po/
'';
sane.programs.ripgrep = {
sandbox.method = "landlock";
sandbox.wrapperType = "wrappedDerivation"; # slow to build
sandbox.autodetectCliPaths = true;
sandbox.whitelistPwd = true;
# .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/
'';
};
}