File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 161161 } ] ;
162162 } ;
163163
164+ config . systemd . services = lib . mkIf cfg . configurePostgres {
165+ grafana = {
166+ after = [ "postgresql.target" ] ;
167+ requires = [ "postgresql.target" ] ;
168+ } ;
169+ } ;
170+
164171 config . users . users = lib . mkIf ( cfg . enable && cfg . configureNginx ) {
165172 grafana . extraGroups = [ "nginx" ] ;
166173 } ;
Original file line number Diff line number Diff line change 8585 event_types = [ "call_service" ] ;
8686 } ;
8787 } ;
88-
89- # see https://github.com/zigpy/zigpy-ota#for-end-users and https://github.com/zigpy/zigpy/pull/1340
90- # TODO: drop with 26.05
91- zha . zigpy_config . ota . z2m_remote_index = lib . mkIf ( lib . versionAtLeast cfg . package . version "2026.01" ) "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json" ;
9288 } ;
9389 } )
9490
181177 } ] ;
182178 } ;
183179
184- config . systemd . tmpfiles . rules = lib . mkIf ( cfg . enable && cfg . recommendedDefaults ) [
185- "f ${ cfg . configDir } /automations.yaml 0444 hass hass"
186- "f ${ cfg . configDir } /scenes.yaml 0444 hass hass"
187- "f ${ cfg . configDir } /scripts.yaml 0444 hass hass"
188- ] ;
180+ config . systemd = {
181+ services . home-assistant = lib . mkIf ( cfg . enable && cfg . configurePostgres ) {
182+ after = [ "postgresql.target" ] ;
183+ requires = [ "postgresql.target" ] ;
184+ } ;
185+
186+ tmpfiles . rules = lib . mkIf ( cfg . enable && cfg . recommendedDefaults ) [
187+ "f ${ cfg . configDir } /automations.yaml 0444 hass hass"
188+ "f ${ cfg . configDir } /scenes.yaml 0444 hass hass"
189+ "f ${ cfg . configDir } /scripts.yaml 0444 hass hass"
190+ ] ;
191+ } ;
189192}
You can’t perform that action at this time.
0 commit comments