Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/gnome/at-spi2-core: fix disabling a11y in all contexts

`environment.variables` gets sourced by shells & the x11 wrapper
through bash's `/etc/profile`, but not by systemd services, dbus
services, wayland sessions...

`environment.sessionVariables` sets these variables with PAM early in
the login process so it gets applied in all contexts.

I ran into a similar issue before in #109060.

+1 -1
+1 -1
nixos/modules/services/desktops/gnome/at-spi2-core.nix
··· 51 }) 52 53 (mkIf (!config.services.gnome.at-spi2-core.enable) { 54 - environment.variables = { 55 NO_AT_BRIDGE = "1"; 56 GTK_A11Y = "none"; 57 };
··· 51 }) 52 53 (mkIf (!config.services.gnome.at-spi2-core.enable) { 54 + environment.sessionVariables = { 55 NO_AT_BRIDGE = "1"; 56 GTK_A11Y = "none"; 57 };