nixpkgs/nixos/modules/services/desktops/gnome/at-spi2-core.nix
2026-03-13 16:53:28 +01:00

53 lines
1 KiB
Nix

# at-spi2-core daemon.
{
config,
lib,
pkgs,
...
}:
{
meta = {
teams = [ lib.teams.gnome ];
};
###### interface
options = {
services.gnome.at-spi2-core = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to enable at-spi2-core, a service for the Assistive Technologies
available on the GNOME platform.
Enable this if you get the error or warning
`The name org.a11y.Bus was not provided by any .service files`.
'';
};
};
};
###### implementation
config = lib.mkMerge [
(lib.mkIf config.services.gnome.at-spi2-core.enable {
environment.systemPackages = [ pkgs.at-spi2-core ];
services.dbus.packages = [ pkgs.at-spi2-core ];
systemd.packages = [ pkgs.at-spi2-core ];
})
(lib.mkIf (!config.services.gnome.at-spi2-core.enable) {
environment.sessionVariables = {
NO_AT_BRIDGE = "1";
GTK_A11Y = "none";
};
})
];
}