summary refs log blame commit diff
path: root/nixos/modules/services/desktops/gnome3/at-spi2-core.nix
blob: 8fa108c4f9df432789229b40ea33e847e5c3993e (plain) (tree)
1
2
3
4
5

                      
                           
 
         














                                                                                  


                                                                                          









                       

                                                      


                                                         





                                                         
 
# at-spi2-core daemon.

{ config, lib, pkgs, ... }:

with lib;

{

  ###### 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.

          Enable this if you get the error or warning
          <literal>The name org.a11y.Bus was not provided by any .service files</literal>.
        '';
      };

    };

  };


  ###### implementation

  config = mkMerge [
    (mkIf config.services.gnome3.at-spi2-core.enable {
      environment.systemPackages = [ pkgs.at-spi2-core ];
      services.dbus.packages = [ pkgs.at-spi2-core ];
      systemd.packages = [ pkgs.at-spi2-core ];
    })

    (mkIf (!config.services.gnome3.at-spi2-core.enable) {
      environment.variables.NO_AT_BRIDGE = "1";
    })
  ];
}