From 39e3856dd8b49a25d04f210c5cf69da89d0fdc79 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 21 Jun 2026 22:57:50 +0300 Subject: [PATCH] nixos/zigbee2mqtt: add RestartSec After a cold reboot, zigbee2mqtt didn't properly come up. The logs showed it crashed too often too quickly, and then systemd stopped trying to restart it due to rate-limiting. It might be due to the network not being up yet, or the Zigbee coordinator still booting. Either way, with a RestartSec=10, it did come up. --- nixos/modules/services/home-automation/zigbee2mqtt.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/home-automation/zigbee2mqtt.nix b/nixos/modules/services/home-automation/zigbee2mqtt.nix index 5ec4d037073d..5fe8b3a68db7 100644 --- a/nixos/modules/services/home-automation/zigbee2mqtt.nix +++ b/nixos/modules/services/home-automation/zigbee2mqtt.nix @@ -84,6 +84,7 @@ in StateDirectory = "zigbee2mqtt"; StateDirectoryMode = "0700"; Restart = "on-failure"; + RestartSec = 10; # Hardening CapabilityBoundingSet = "";