forked from jan-leila/nix-config
		
	refactor: split server modules into smaller more manageable files
This commit is contained in:
		
							parent
							
								
									b2e5ae1f98
								
							
						
					
					
						commit
						cdeb4e108b
					
				
					 49 changed files with 1519 additions and 1270 deletions
				
			
		|  | @ -0,0 +1,12 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: { | ||||
|   imports = [ | ||||
|     ./sonos.nix | ||||
|     ./jellyfin.nix | ||||
|     ./wyoming.nix | ||||
|   ]; | ||||
| } | ||||
|  | @ -0,0 +1,9 @@ | |||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: | ||||
| lib.mkIf (config.services.home-assistant.extensions.jellyfin.enable) { | ||||
|   services.home-assistant.extraComponents = ["jellyfin"]; | ||||
|   # TODO: configure port, address, and login information here | ||||
| } | ||||
|  | @ -0,0 +1,11 @@ | |||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: | ||||
| lib.mkIf (config.services.home-assistant.extensions.sonos.enable) { | ||||
|   services.home-assistant.extraComponents = ["sonos"]; | ||||
|   networking.firewall.allowedTCPPorts = [ | ||||
|     config.services.home-assistant.extensions.sonos.port | ||||
|   ]; | ||||
| } | ||||
|  | @ -0,0 +1,9 @@ | |||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: | ||||
| lib.mkIf (config.services.home-assistant.extensions.wyoming.enable) { | ||||
|   services.home-assistant.extraComponents = ["wyoming"]; | ||||
|   services.wyoming.enable = true; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue