python312Packages.dissect-extfs: 3.11 -> 3.12
[NixPkgs.git] / nixos / modules / services / desktops / gnome / localsearch.nix
blob9160d1f06431d3b994d4899d55cb73bafbfdba1b
2   config,
3   pkgs,
4   lib,
5   ...
6 }:
9   meta = {
10     maintainers = lib.teams.gnome.members;
11   };
13   imports = [
14     (lib.mkRenamedOptionModule
15       [
16         "services"
17         "gnome"
18         "tracker-miners"
19         "enable"
20       ]
21       [
22         "services"
23         "gnome"
24         "localsearch"
25         "enable"
26       ]
27     )
28   ];
30   options = {
31     services.gnome.localsearch = {
32       enable = lib.mkOption {
33         type = lib.types.bool;
34         default = false;
35         description = ''
36           Whether to enable LocalSearch, indexing services for TinySPARQL
37           search engine and metadata storage system.
38         '';
39       };
40     };
41   };
43   config = lib.mkIf config.services.gnome.localsearch.enable {
44     environment.systemPackages = [ pkgs.localsearch ];
46     services.dbus.packages = [ pkgs.localsearch ];
48     systemd.packages = [ pkgs.localsearch ];
49   };