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
|
|
|
|
|
|
|
{
|
|
|
|
|
2020-04-02 02:16:24 +02:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
|
2014-04-08 22:44:22 +02:00
|
|
|
###### interface
|
|
|
|
|
2021-05-07 23:18:14 +02:00
|
|
|
# Added 2021-05-07
|
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "at-spi2-core" "enable" ]
|
|
|
|
[ "services" "gnome" "at-spi2-core" "enable" ]
|
|
|
|
)
|
|
|
|
];
|
|
|
|
|
2014-04-08 22:44:22 +02:00
|
|
|
options = {
|
|
|
|
|
2021-05-07 23:18:14 +02:00
|
|
|
services.gnome.at-spi2-core = {
|
2014-04-08 22:44:22 +02:00
|
|
|
|
|
|
|
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.
|
2020-01-19 22:55:21 +01:00
|
|
|
|
|
|
|
Enable this if you get the error or warning
|
|
|
|
<literal>The name org.a11y.Bus was not provided by any .service files</literal>.
|
2014-04-08 22:44:22 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2017-12-13 04:55:35 +01:00
|
|
|
config = mkMerge [
|
2021-05-07 23:18:14 +02:00
|
|
|
(mkIf config.services.gnome.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
|
|
|
})
|
|
|
|
|
2021-05-07 23:18:14 +02:00
|
|
|
(mkIf (!config.services.gnome.at-spi2-core.enable) {
|
2017-12-13 04:55:35 +01:00
|
|
|
environment.variables.NO_AT_BRIDGE = "1";
|
|
|
|
})
|
|
|
|
];
|
2014-04-08 22:44:22 +02:00
|
|
|
}
|