Iot : Delay to wait for nextcloud calendar on boot.

This commit is contained in:
Dmitry Voronin 2024-06-26 20:40:54 +03:00
parent 5c24476609
commit 12caeea867
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 18 additions and 6 deletions

View file

@ -88,6 +88,18 @@ in {
# NOTE: Using imperative config because of secrets. # NOTE: Using imperative config because of secrets.
config = null; config = null;
}; };
# HACK: Delay so that nextcloud calendar can reply on reboot.
systemd = {
services."home-assistant".wantedBy = mkForce [];
timers.fixsystemd = {
timerConfig = {
OnBootSec = 5;
Unit = "home-assistant.service";
};
wantedBy = [ "timers.target" ];
};
};
}; };
}; };
}; };

View file

@ -68,18 +68,18 @@ in {
systemd = { systemd = {
services = { services = {
paperless-scheduler = { paperless-scheduler = {
serviceConfig.PrivateNetwork = lib.mkForce false; serviceConfig.PrivateNetwork = mkForce false;
wantedBy = lib.mkForce []; wantedBy = mkForce [];
}; };
paperless-consumer = { paperless-consumer = {
serviceConfig.PrivateNetwork = lib.mkForce false; serviceConfig.PrivateNetwork = mkForce false;
wantedBy = lib.mkForce []; wantedBy = mkForce [];
}; };
paperless-web = { paperless-web = {
wantedBy = lib.mkForce []; wantedBy = mkForce [];
}; };
paperless-task-queue = { paperless-task-queue = {
wantedBy = lib.mkForce []; wantedBy = mkForce [];
}; };
}; };
timers.fixsystemd = { timers.fixsystemd = {