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 NixOS#329658
  • Loading branch information
vcunat authored and SuperSandro2000 committed Jul 27, 2024
1 parent 8c80523 commit 2578ffa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/modules/services/accessibility/speechd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ in
options.services.speechd = {
# FIXME: figure out how to deprecate this EXTREMELY CAREFULLY
enable = mkEnableOption "speech-dispatcher speech synthesizer daemon" // {
default = true;
# conservative guess, as in ../misc/graphical-desktop.nix
default = config.services.xserver.enable || config.services.displayManager.enable;
defaultText = lib.literalExpression
"config.services.xserver.enable || config.services.displayManager.enable";
};
package = mkPackageOption pkgs "speechd" { };
};
Expand Down

0 comments on commit 2578ffa

Please sign in to comment.