service: schedule after network-online

This commit is contained in:
makefu 2024-05-30 19:08:15 +02:00
parent a426a02212
commit c5d3992975
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
2 changed files with 2 additions and 1 deletions

View file

@ -11,6 +11,7 @@ in {
};
after = [ "network-online.target" ] ++ (lib.optional config.services.mosquitto.enable "mosquitto.service");
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
serviceConfig = {
# User = "nobody"; # need a user with permissions to run nix-shell
ExecStartPre = pkgs.writeDash "sleep.sh" "sleep 2";

View file

@ -49,7 +49,7 @@ in
after = [
"home-assistant.service"
"mosquitto.service"
"network-online.target"
# "network-online.target"
];
};
}