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

This commit is contained in:
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 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.method = "bwrap"; # TODO:sandbox: untested
rsync.sandbox.autodetectCliPaths = true; rsync.sandbox.autodetectCliPaths = true;

View File

@@ -1,9 +1,16 @@
{ ... }: { ... }:
{ {
# .ignore file is read by ripgrep (rg), silver searcher (ag), maybe others. sane.programs.ripgrep = {
# ignore translation files by default when searching, as they tend to have sandbox.method = "landlock";
# a LOT of duplicate text. sandbox.wrapperType = "wrappedDerivation"; # slow to build
sane.programs.ripgrep.fs.".ignore".symlink.text = '' sandbox.autodetectCliPaths = true;
po/ 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/
'';
};
} }