mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
26 lines
398 B
Nix
26 lines
398 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 ];
|
|
services.speechd.enable = true;
|
|
};
|
|
}
|