1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 16:39:31 +03:00
nixpkgs/nixos/modules/services/accessibility/speechd.nix

32 lines
739 B
Nix
Raw Permalink Normal View History

2024-07-26 16:06:48 +03:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.services.speechd;
inherit (lib)
mkEnableOption
mkIf
mkPackageOption
;
in
{
options.services.speechd = {
# FIXME: figure out how to deprecate this EXTREMELY CAREFULLY
# default guessed conservatively in ../misc/graphical-desktop.nix
enable = mkEnableOption "speech-dispatcher speech synthesizer daemon";
2024-07-26 16:06:48 +03:00
package = mkPackageOption pkgs "speechd" { };
};
config = mkIf cfg.enable {
environment = {
systemPackages = [ cfg.package ];
};
2025-01-19 14:33:35 +01:00
systemd.packages = [ cfg.package ];
# have to set `wantedBy` since `systemd.packages` ignores `[Install]`
systemd.user.sockets.speech-dispatcher.wantedBy = [ "sockets.target" ];
2024-07-26 16:06:48 +03:00
};
}