nix-config/modules/home-manager/terminal/voice.nix
Gabe Venberg 9eb783a3e8 moved home-manager options to the "home" namespace
this frees up the "host" namespace for host-wide options.
2024-04-23 16:56:34 -05:00

25 lines
414 B
Nix

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