28 lines
		
	
	
		
			493 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			493 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   pkgs,
 | |
|   config,
 | |
|   lib,
 | |
|   ...
 | |
| }: let
 | |
|   inherit (lib) mkEnableOption mkIf;
 | |
|   cfg = config.my-namespace.home.stream-tools;
 | |
| in {
 | |
|   options.my-namespace.home.stream-tools = {
 | |
|     enable = mkEnableOption "Enable the Stream Machine Tools";
 | |
|   };
 | |
| 
 | |
|   
 | |
| 
 | |
|   config = mkIf cfg.enable {
 | |
|     programs.obs-studio = {
 | |
|       enable = true;
 | |
|       plugins = [ pkgs.obs-studio-plugins.droidcam-obs ];
 | |
|     };
 | |
|     home = {
 | |
|       packages = with pkgs; [
 | |
|         # obs-studio
 | |
|         droidcam
 | |
|       ];
 | |
|     };
 | |
|   };
 | |
| } |