fix: Added the ironbar fix

This commit is contained in:
uttarayan21
2025-08-16 02:21:51 +05:30
parent 40c4d186dc
commit aa3921d7ec
3 changed files with 33 additions and 6 deletions

View File

@@ -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";
};
};
}