fix: Added the ironbar fix
This commit is contained in:
@@ -40,4 +40,26 @@
|
||||
reverse_proxy localhost:8123
|
||||
'';
|
||||
};
|
||||
|
||||
# Systemd service to pull latest Home Assistant image
|
||||
systemd.services.homeassistant-image-update = {
|
||||
description = "Pull latest Home Assistant Docker image";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.docker}/bin/docker pull ghcr.io/home-assistant/home-assistant:latest";
|
||||
ExecStartPost = "${pkgs.systemd}/bin/systemctl restart docker-homeassistant.service";
|
||||
};
|
||||
};
|
||||
|
||||
# Systemd timer to run the update service every 5 days
|
||||
systemd.timers.homeassistant-image-update = {
|
||||
description = "Timer for Home Assistant image updates";
|
||||
wantedBy = ["timers.target"];
|
||||
timerConfig = {
|
||||
OnCalendar = "Mon *-*-* 02:00:00";
|
||||
OnUnitInactiveSec = "5d";
|
||||
Persistent = true;
|
||||
RandomizedDelaySec = "1h";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user