made sound usable on non-graphical systems.
This commit is contained in:
		
							parent
							
								
									f4e5e24e2b
								
							
						
					
					
						commit
						b9fb31d1d6
					
				
					 7 changed files with 28 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./git.nix
 | 
			
		||||
    ./voice.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,20 +0,0 @@
 | 
			
		|||
{
 | 
			
		||||
  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
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue