diff --git a/system/nixos/weewx.nix b/system/nixos/weewx.nix index de1cbbe..8498d90 100644 --- a/system/nixos/weewx.nix +++ b/system/nixos/weewx.nix @@ -16,7 +16,8 @@ in in { description = "WeeWX"; - requires = [ "time-sync.target" "mosquitto.service" ] ++ mounts; + requires = [ "time-sync.target" "mosquitto.service" ]; + bindsTo = mounts; after = [ "network-online.target" "time-sync.target" "mosquitto.service" ] ++ mounts; wants = [ "network-online.target" ]; wantedBy = [ "multi-user.target" ];