nix-config/modules/home-manager/terminal/voice.nix

25 lines
414 B
Nix
Raw Normal View History

2024-03-24 23:39:49 +01:00
{
config,
pkgs,
lib,
...
}: {
options = {
2024-03-25 04:56:01 +01:00
host.enable-speech = lib.mkEnableOption "espeak";
2024-03-24 23:39:49 +01:00
};
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
'';
};
}