nixpkgs/nixos/modules/services/desktops/gnome/tinysparql.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.1 KiB
Nix
Raw Normal View History

# TinySPARQL daemon.
{ config, pkgs, lib, ... }:
let
cfg = config.services.gnome.tinysparql;
in
{
meta = {
maintainers = lib.teams.gnome.members;
};
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.
'')
(lib.mkRenamedOptionModule [ "services" "gnome" "tracker" "enable" ] [ "services" "gnome" "tinysparql" "enable" ])
];
###### interface
options = {
services.gnome.tinysparql = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to enable TinySPARQL services, a search engine,
search tool and metadata storage system.
'';
};
};
};
###### implementation
config = lib.mkIf cfg.enable {
2019-08-23 00:49:39 +00:00
environment.systemPackages = [ pkgs.tracker ];
2019-08-23 00:49:39 +00:00
services.dbus.packages = [ pkgs.tracker ];
2019-08-23 00:49:39 +00:00
systemd.packages = [ pkgs.tracker ];
};
}