tree-wide change. seperated config from 'real' modles.
This commit is contained in:
		
							parent
							
								
									3eee4e105d
								
							
						
					
					
						commit
						a0c1ad0beb
					
				
					 59 changed files with 377 additions and 424 deletions
				
			
		
							
								
								
									
										20
									
								
								modules/home-manager/voice.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								modules/home-manager/voice.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
{
 | 
			
		||||
  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