1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 10:49:44 +01:00
home-manager/tests/modules/programs/ripgrep/custom-arguments.nix

25 lines
601 B
Nix
Raw Normal View History

{ 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
''
}
'';
};
}