mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 09:43:30 +01:00
Without this `mkIf`, it was accidentally disabling `getty@tty1.service` on non-display-manager systems.
29 lines
523 B
Nix
29 lines
523 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 = lib.mkIf config.services.displayManager.enable {
|
|
path = [ cfg.package ];
|
|
};
|
|
services.speechd.enable = true;
|
|
};
|
|
}
|