diff --git a/configurations/homie/modules/home-assistant/zigbee.nix b/configurations/homie/modules/home-assistant/zigbee.nix index 193c5959..4e3fcac9 100644 --- a/configurations/homie/modules/home-assistant/zigbee.nix +++ b/configurations/homie/modules/home-assistant/zigbee.nix @@ -1,4 +1,6 @@ -{...}: { +{lib, ...}: let + inherit (lib) mkForce; +in { services = { home-assistant = { extraComponents = [ @@ -44,4 +46,10 @@ }; }; }; + + # Make sure it stays running through SMLIGHT reboots + systemd.services."zigbee2mqtt".serviceConfig = { + Restart = mkForce "always"; + StartLimitIntervalSec = 0; + }; }