depot/third_party/home-manager/tests/modules/services/recoll/basic-configuration.nix
Default email 2eafb8192e Project import generated by Copybara.
GitOrigin-RevId: 176e455371a8371586e8a3ff0d56ee9f3ca2324e
2023-01-10 02:35:00 -07:00

35 lines
997 B
Nix

{ config, ... }:
{
services.recoll = {
enable = true;
package = config.lib.test.mkStubPackage { };
configDir = "${config.xdg.configHome}/recoll";
settings = {
topdirs = [ "~/Downloads" "~/Documents" "~/library" ];
"skippedNames+" = [ "node_modules" ];
underscoresasletter = true;
nocjk = false;
"~/library/projects" = {
"skippedNames+" =
[ ".editorconfig" ".gitignore" "result" "flake.lock" "go.sum" ];
};
"~/library/projects/software" = {
"skippedNames+" = [ "target" "result" ];
};
"~/what-is-this-project" = { "skippedNames+" = [ "whoa-there" ]; };
};
};
nmt.script = ''
assertFileExists home-files/.config/systemd/user/recollindex.service
assertFileExists home-files/.config/systemd/user/recollindex.timer
assertFileExists home-files/.config/recoll/recoll.conf
assertFileContent home-files/.config/recoll/recoll.conf \
${./basic-configuration.conf}
'';
}