mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-08 03:26:08 +03:00
nixos/home-assistant: Wait for network-online.target
If people take the time to setup network-online.target correctly we should wait for it. If they don't it's basically the same as network.target anyway, so no harm done. Over time I've seen multiple integrations that have dealt badly with missing network connectivity at startup, this should alleviate further pains.
This commit is contained in:
parent
82f0df4d68
commit
9896247fb6
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ in {
|
|||
|
||||
systemd.services.home-assistant = {
|
||||
description = "Home Assistant";
|
||||
after = [ "network.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
preStart = optionalString (cfg.config != null) (if cfg.configWritable then ''
|
||||
cp --no-preserve=mode ${configFile} "${cfg.configDir}/configuration.yaml"
|
||||
'' else ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue