1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/services/recoll/basic-configuration.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

51 lines
1.2 KiB
Nix

{ config, ... }:
{
services.recoll = {
enable = true;
package = config.lib.test.mkStubPackage { };
configDir = "${config.xdg.configHome}/recoll";
settings = {
dbdir = "~/.cache/recoll/xapiandb";
topdirs = [
"~/Downloads"
"~/Documents"
"~/library"
''~/"cool" files''
];
"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}
'';
}