mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-14 19:58:30 +01:00
Without this, the greeter is unable to see `orca` program on `PATH`
and so `${gdm}/share/gdm/greeter/autostart/orca-autostart.desktop`
will fail to start it. As a result, screen reader would not work
on the login screen.
27 lines
459 B
Nix
27 lines
459 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.services.orca;
|
|
inherit (lib)
|
|
mkEnableOption
|
|
mkIf
|
|
mkPackageOption
|
|
;
|
|
in
|
|
{
|
|
options.services.orca = {
|
|
enable = mkEnableOption "Orca screen reader";
|
|
package = mkPackageOption pkgs "orca" { };
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
systemd.services.display-manager.path = [ cfg.package ];
|
|
services.speechd.enable = true;
|
|
};
|
|
}
|