totoro: want network-online.target

This commit is contained in:
Luke Granger-Brown 2024-01-27 22:57:59 +00:00
parent 9bdab9a2fc
commit 84359a9136

View file

@ -518,6 +518,7 @@ in {
systemd.services.sslrenew-raritan = { systemd.services.sslrenew-raritan = {
enable = true; enable = true;
after = [ "network-online.target" ]; after = [ "network-online.target" ];
wants = [ "network-online.target" ];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
ExecStart = "${depot.ops.raritan.ssl-renew}/lego.sh"; ExecStart = "${depot.ops.raritan.ssl-renew}/lego.sh";
@ -544,6 +545,7 @@ in {
systemd.services.streetworks = { systemd.services.streetworks = {
enable = true; enable = true;
after = [ "network-online.target" ]; after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
serviceConfig = { serviceConfig = {
ExecStart = "${depot.go.streetworks}/bin/streetworks -postcode='NW5 4HS' -pushover_token='${secrets.pushover.tokens.depot}' -pushover_user='${secrets.pushover.userKey}'"; ExecStart = "${depot.go.streetworks}/bin/streetworks -postcode='NW5 4HS' -pushover_token='${secrets.pushover.tokens.depot}' -pushover_user='${secrets.pushover.userKey}'";