at 23.11-beta 1.2 kB view raw
1# at-spi2-core daemon. 2 3{ config, lib, pkgs, ... }: 4 5with lib; 6 7{ 8 9 meta = { 10 maintainers = teams.gnome.members; 11 }; 12 13 ###### interface 14 15 # Added 2021-05-07 16 imports = [ 17 (mkRenamedOptionModule 18 [ "services" "gnome3" "at-spi2-core" "enable" ] 19 [ "services" "gnome" "at-spi2-core" "enable" ] 20 ) 21 ]; 22 23 options = { 24 25 services.gnome.at-spi2-core = { 26 27 enable = mkOption { 28 type = types.bool; 29 default = false; 30 description = lib.mdDoc '' 31 Whether to enable at-spi2-core, a service for the Assistive Technologies 32 available on the GNOME platform. 33 34 Enable this if you get the error or warning 35 `The name org.a11y.Bus was not provided by any .service files`. 36 ''; 37 }; 38 39 }; 40 41 }; 42 43 44 ###### implementation 45 46 config = mkMerge [ 47 (mkIf config.services.gnome.at-spi2-core.enable { 48 environment.systemPackages = [ pkgs.at-spi2-core ]; 49 services.dbus.packages = [ pkgs.at-spi2-core ]; 50 systemd.packages = [ pkgs.at-spi2-core ]; 51 }) 52 53 (mkIf (!config.services.gnome.at-spi2-core.enable) { 54 environment.sessionVariables = { 55 NO_AT_BRIDGE = "1"; 56 GTK_A11Y = "none"; 57 }; 58 }) 59 ]; 60}