diff --git a/nixos/boxes/home/routing-common/kea.nix b/nixos/boxes/home/routing-common/kea.nix index fd5b896..f63f952 100644 --- a/nixos/boxes/home/routing-common/kea.nix +++ b/nixos/boxes/home/routing-common/kea.nix @@ -26,7 +26,11 @@ in }; systemd.services = { - kea-dhcp4-server.serviceConfig.DynamicUser = mkForce false; + kea-dhcp4-server.serviceConfig = { + # Sometimes interfaces might not be ready in time and Kea doesn't like that + Restart = "on-failure"; + DynamicUser = mkForce false; + }; kea-dhcp-ddns-server.serviceConfig.DynamicUser = mkForce false; };