forked from jan-leila/nix-config
		
	got hass app config closer to working
This commit is contained in:
		
							parent
							
								
									2188954b79
								
							
						
					
					
						commit
						92839b4603
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -74,6 +74,7 @@ in { | ||||||
|           "unifi" |           "unifi" | ||||||
|           "openweathermap" |           "openweathermap" | ||||||
|           "ollama" |           "ollama" | ||||||
|  |           "mobile_app" | ||||||
|         ]; |         ]; | ||||||
|         config = { |         config = { | ||||||
|           http = { |           http = { | ||||||
|  | @ -83,6 +84,10 @@ in { | ||||||
|             ip_ban_enabled = true; |             ip_ban_enabled = true; | ||||||
|             login_attempts_threshold = 10; |             login_attempts_threshold = 10; | ||||||
|           }; |           }; | ||||||
|  |           homeassistant = { | ||||||
|  |             external_url = "https://home.jan-leila.com"; | ||||||
|  |             internal_url = "http://192.168.1.2:8123"; | ||||||
|  |           }; | ||||||
|           recorder.db_url = "postgresql://@/${dbUser}"; |           recorder.db_url = "postgresql://@/${dbUser}"; | ||||||
|           "automation manual" = []; |           "automation manual" = []; | ||||||
|           "automation ui" = "!include automations.yaml"; |           "automation ui" = "!include automations.yaml"; | ||||||
|  | @ -97,6 +102,10 @@ in { | ||||||
| 
 | 
 | ||||||
|       # TODO: configure /var/lib/hass/secrets.yaml via sops |       # TODO: configure /var/lib/hass/secrets.yaml via sops | ||||||
| 
 | 
 | ||||||
|  |       networking.firewall.allowedUDPPorts = [ | ||||||
|  |         1900 | ||||||
|  |       ]; | ||||||
|  | 
 | ||||||
|       systemd.tmpfiles.rules = [ |       systemd.tmpfiles.rules = [ | ||||||
|         "f ${config.services.home-assistant.configDir}/automations.yaml 0755 hass hass" |         "f ${config.services.home-assistant.configDir}/automations.yaml 0755 hass hass" | ||||||
|       ]; |       ]; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue