mirror of
https://github.com/nix-community/home-manager
synced 2024-08-17 01:26:31 +02:00
The updated implementation will quote string lists as per the description at https://www.lesbonscomptes.com/recoll/usermanual/#RCL.INSTALL.CONFIG Fixes #3732
37 lines
1.0 KiB
Nix
37 lines
1.0 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}
|
|
'';
|
|
}
|