nix-config/terminal/voice.nix
2024-03-24 17:39:49 -05:00

31 lines
532 B
Nix

{
config,
pkgs,
lib,
...
}: {
options = {
host.enable-speech = lib.mkOption {
default = false;
type = lib.types.bool;
description = ''
install a text to speech engine
'';
};
};
config =
lib.mkIf config.host.enable-speech
{
home.shellAliases = {
say = "espeak -p 10 -s 150 -a 200";
};
home.packages = with pkgs; [
espeak
];
programs.nushell.extraConfig = ''
alias say = espeak -p 10 -s 150 -a 200
'';
};
}