2024-03-24 23:39:49 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-05-29 22:18:13 +02:00
|
|
|
options.user.enable-speech = lib.mkEnableOption "espeak";
|
2024-03-24 23:39:49 +01:00
|
|
|
|
2024-05-29 22:18:13 +02:00
|
|
|
config = lib.mkIf config.user.enable-speech {
|
|
|
|
home.shellAliases = {
|
|
|
|
say = "espeak -p 10 -s 150 -a 200";
|
2024-03-24 23:39:49 +01:00
|
|
|
};
|
2024-05-29 22:18:13 +02:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
espeak
|
|
|
|
];
|
|
|
|
programs.nushell.extraConfig = ''
|
|
|
|
alias say = espeak -p 10 -s 150 -a 200
|
|
|
|
'';
|
|
|
|
};
|
2024-03-24 23:39:49 +01:00
|
|
|
}
|