1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +01:00
home-manager/tests/modules/programs/ripgrep/custom-arguments.nix
Nikita Pedorich 2951946183
ripgrep: add module (#4017)
* ripgrep: add module

* ripgrep: Apply suggestions from code review

Co-authored-by: Naïm Favier <n@monade.li>

* ripgrep: fix maintainers

Co-authored-by: Naïm Favier <n@monade.li>

* ripgrep: rename config into arguments

---------

Co-authored-by: Naïm Favier <n@monade.li>
2023-06-02 17:59:12 +02:00

24 lines
601 B
Nix

{ pkgs, config, ... }: {
config = {
programs.ripgrep = {
enable = true;
package = config.lib.test.mkStubPackage { name = "ripgrep"; };
arguments = [
"--max-columns-preview"
"--colors=line:style:bold"
"--no-require-git"
];
};
nmt.script = ''
assertFileExists home-files/.config/ripgrep/ripgreprc
assertFileContent home-files/.config/ripgrep/ripgreprc ${
pkgs.writeText "ripgrep.expected" ''
--max-columns-preview
--colors=line:style:bold
--no-require-git
''
}
'';
};
}