Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
# at-spi2-core daemon.
|
|
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
|
|
meta = {
|
|
maintainers = lib.teams.gnome.members;
|
|
};
|
|
|
|
###### 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";
|
|
};
|
|
})
|
|
];
|
|
}
|