25 lines
414 B
Nix
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
|
|
'';
|
|
};
|
|
}
|