service: schedule after network-online
This commit is contained in:
parent
a426a02212
commit
c5d3992975
|
@ -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";
|
||||
|
|
|
@ -49,7 +49,7 @@ in
|
|||
after = [
|
||||
"home-assistant.service"
|
||||
"mosquitto.service"
|
||||
"network-online.target"
|
||||
# "network-online.target"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue