nix-config/modules/home-manager/terminal/voice.nix
Gabe Venberg 6f0e167087 added enable option to nvim
changed home-manager personal config namespace from home.* to user.*
2024-05-29 13:40:03 -05:00

25 lines
414 B
Nix

{
config,
pkgs,
lib,
...
}: {
options = {
user.enable-speech = lib.mkEnableOption "espeak";
};
config =
lib.mkIf config.user.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
'';
};
}