mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
23 lines
577 B
Nix
23 lines
577 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
|
|
''}
|
|
'';
|
|
};
|
|
}
|