2017-11-09 13:28:43 +00:00
|
|
|
# Tracker Miners daemons.
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
2020-04-02 01:16:24 +01:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
|
2021-05-07 22:18:14 +01:00
|
|
|
imports = [
|
|
|
|
# Added 2021-05-07
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "tracker-miners" "enable" ]
|
|
|
|
[ "services" "gnome" "tracker-miners" "enable" ]
|
|
|
|
)
|
|
|
|
];
|
|
|
|
|
2017-11-09 13:28:43 +00:00
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2021-05-07 22:18:14 +01:00
|
|
|
services.gnome.tracker-miners = {
|
2017-11-09 13:28:43 +00:00
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2022-07-28 22:19:15 +01:00
|
|
|
description = lib.mdDoc ''
|
2017-11-09 13:28:43 +00:00
|
|
|
Whether to enable Tracker miners, indexing services for Tracker
|
|
|
|
search engine and metadata storage system.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2021-05-07 22:18:14 +01:00
|
|
|
config = mkIf config.services.gnome.tracker-miners.enable {
|
2017-11-09 13:28:43 +00:00
|
|
|
|
2019-08-23 01:55:26 +01:00
|
|
|
environment.systemPackages = [ pkgs.tracker-miners ];
|
2017-11-09 13:28:43 +00:00
|
|
|
|
2019-08-23 01:55:26 +01:00
|
|
|
services.dbus.packages = [ pkgs.tracker-miners ];
|
2017-11-09 13:28:43 +00:00
|
|
|
|
2019-08-23 01:55:26 +01:00
|
|
|
systemd.packages = [ pkgs.tracker-miners ];
|
2017-11-09 13:28:43 +00:00
|
|
|
|
2022-01-03 20:51:26 +00:00
|
|
|
services.gnome.tracker.subcommandPackages = [ pkgs.tracker-miners ];
|
|
|
|
|
2017-11-09 13:28:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|