1# at-spi2-core daemon.
2
3{ config, lib, pkgs, ... }:
4
5with lib;
6
7{
8
9 ###### interface
10
11 options = {
12
13 services.gnome3.at-spi2-core = {
14
15 enable = mkOption {
16 type = types.bool;
17 default = false;
18 description = ''
19 Whether to enable at-spi2-core, a service for the Assistive Technologies
20 available on the GNOME platform.
21 '';
22 };
23
24 };
25
26 };
27
28
29 ###### implementation
30
31 config = mkMerge [
32 (mkIf config.services.gnome3.at-spi2-core.enable {
33 environment.systemPackages = [ pkgs.at-spi2-core ];
34 services.dbus.packages = [ pkgs.at-spi2-core ];
35 systemd.packages = [ pkgs.at-spi2-core ];
36 })
37
38 (mkIf (!config.services.gnome3.at-spi2-core.enable) {
39 environment.variables.NO_AT_BRIDGE = "1";
40 })
41 ];
42}