9e486344a9
As suggested in #16327 (https://github.com/NixOS/nixpkgs/issues/16327#issuecomment-315729994).
42 lines
795 B
Nix
42 lines
795 B
Nix
# 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.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### 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";
|
|
})
|
|
];
|
|
}
|