2014-04-08 22:44:22 +02:00
|
|
|
# at-spi2-core daemon.
|
|
|
|
|
2014-04-14 16:26:48 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2014-04-08 22:44:22 +02:00
|
|
|
|
2014-04-14 16:26:48 +02:00
|
|
|
with lib;
|
2014-04-08 22:44:22 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.gnome3.at-spi2-core = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to enable at-spi2-core, a service for the Assistive Technologies
|
|
|
|
available on the GNOME platform.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2017-12-13 04:55:35 +01:00
|
|
|
config = mkMerge [
|
|
|
|
(mkIf config.services.gnome3.at-spi2-core.enable {
|
2018-02-25 03:23:58 +01:00
|
|
|
environment.systemPackages = [ pkgs.at-spi2-core ];
|
|
|
|
services.dbus.packages = [ pkgs.at-spi2-core ];
|
|
|
|
systemd.packages = [ pkgs.at-spi2-core ];
|
2017-12-13 04:55:35 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
(mkIf (!config.services.gnome3.at-spi2-core.enable) {
|
|
|
|
environment.variables.NO_AT_BRIDGE = "1";
|
|
|
|
})
|
|
|
|
];
|
2014-04-08 22:44:22 +02:00
|
|
|
}
|