Skip to content

Commit

Permalink
nixos/speechd: avoid by default on headless systems
Browse files Browse the repository at this point in the history
Incidentally this also fixes tests like nixosTests.installer.simple
/cc PR #329658
  • Loading branch information
vcunat committed Jul 28, 2024
1 parent bd7897e commit 1e9b3c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nixos/modules/services/accessibility/speechd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ in
{
options.services.speechd = {
# FIXME: figure out how to deprecate this EXTREMELY CAREFULLY
enable = mkEnableOption "speech-dispatcher speech synthesizer daemon" // {
default = true;
};
# default guessed conservatively in ../misc/graphical-desktop.nix
enable = mkEnableOption "speech-dispatcher speech synthesizer daemon";
package = mkPackageOption pkgs "speechd" { };
};

Expand Down
2 changes: 2 additions & 0 deletions nixos/modules/services/misc/graphical-desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ in

programs.gnupg.agent.pinentryPackage = lib.mkOverride 1100 pkgs.pinentry-gnome3;

services.speechd.enable = lib.mkDefault true;

systemd.defaultUnit = lib.mkIf (xcfg.autorun || dmcfg.enable) "graphical.target";

xdg = {
Expand Down

0 comments on commit 1e9b3c1

Please sign in to comment.