3 { config, pkgs, lib, ... }:
6 cfg = config.services.gnome.tracker;
11 maintainers = lib.teams.gnome.members;
18 services.gnome.tracker = {
20 enable = lib.mkOption {
21 type = lib.types.bool;
24 Whether to enable Tracker services, a search engine,
25 search tool and metadata storage system.
29 subcommandPackages = lib.mkOption {
30 type = lib.types.listOf lib.types.package;
34 List of packages containing tracker3 subcommands.
45 config = lib.mkIf cfg.enable {
47 environment.systemPackages = [ pkgs.tracker ];
49 services.dbus.packages = [ pkgs.tracker ];
51 systemd.packages = [ pkgs.tracker ];
53 environment.variables = {
54 TRACKER_CLI_SUBCOMMANDS_DIR =
56 subcommandPackagesTree = pkgs.symlinkJoin {
57 name = "tracker-with-subcommands-${pkgs.tracker.version}";
58 paths = [ pkgs.tracker ] ++ cfg.subcommandPackages;
61 "${subcommandPackagesTree}/libexec/tracker3";