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