2024-08-15 10:22:18 +00:00
|
|
|
# TinySPARQL daemon.
|
2014-04-09 13:57:02 +00:00
|
|
|
|
2014-05-05 18:58:51 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2014-04-09 13:57:02 +00:00
|
|
|
|
2022-01-03 20:51:26 +00:00
|
|
|
let
|
2024-08-15 10:22:18 +00:00
|
|
|
cfg = config.services.gnome.tinysparql;
|
2022-01-03 20:51:26 +00:00
|
|
|
in
|
2014-04-09 13:57:02 +00:00
|
|
|
{
|
|
|
|
|
2020-04-02 00:16:24 +00:00
|
|
|
meta = {
|
2024-04-30 16:57:01 +00:00
|
|
|
maintainers = lib.teams.gnome.members;
|
2020-04-02 00:16:24 +00:00
|
|
|
};
|
|
|
|
|
2024-08-13 13:40:01 +00:00
|
|
|
imports = [
|
|
|
|
(lib.mkRemovedOptionModule [ "services" "gnome" "tracker" "subcommandPackages" ] ''
|
|
|
|
This option is broken since 3.7 and since 3.8 tracker (tinysparql) no longer expect
|
|
|
|
CLI to be extended by external projects, note that tracker-miners (localsearch) now
|
|
|
|
provides its own CLI tool.
|
|
|
|
'')
|
2024-08-15 10:22:18 +00:00
|
|
|
(lib.mkRenamedOptionModule [ "services" "gnome" "tracker" "enable" ] [ "services" "gnome" "tinysparql" "enable" ])
|
2024-08-13 13:40:01 +00:00
|
|
|
];
|
|
|
|
|
2014-04-09 13:57:02 +00:00
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2024-08-15 10:22:18 +00:00
|
|
|
services.gnome.tinysparql = {
|
2014-04-09 13:57:02 +00:00
|
|
|
|
2024-04-30 16:57:01 +00:00
|
|
|
enable = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
2014-04-09 13:57:02 +00:00
|
|
|
default = false;
|
|
|
|
description = ''
|
2024-08-15 10:22:18 +00:00
|
|
|
Whether to enable TinySPARQL services, a search engine,
|
2014-04-09 13:57:02 +00:00
|
|
|
search tool and metadata storage system.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2024-04-30 16:57:01 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2014-04-09 13:57:02 +00:00
|
|
|
|
2019-08-23 00:49:39 +00:00
|
|
|
environment.systemPackages = [ pkgs.tracker ];
|
2014-04-09 13:57:02 +00:00
|
|
|
|
2019-08-23 00:49:39 +00:00
|
|
|
services.dbus.packages = [ pkgs.tracker ];
|
2014-04-09 13:57:02 +00:00
|
|
|
|
2019-08-23 00:49:39 +00:00
|
|
|
systemd.packages = [ pkgs.tracker ];
|
2016-09-30 22:11:43 +00:00
|
|
|
|
2014-04-09 13:57:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|