From f40beec906c6efe17bb7f6b689ed1dddf000b397 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 20 Jun 2026 21:10:09 +0300 Subject: [PATCH] nixos/zigbee2mqtt: add AF_UNIX to RestrictAddressFamilies zigbee2mqtt supports listening on unix domain sockets, if a path is specified in the `frontend.host` config key. This currently fails with the following log message: > zigbee2mqtt[4551]: Error: listen EAFNOSUPPORT: address family not supported /path/to/zigbee2mqtt.sock Listening on unix domain sockets is a reasonable thing to have enabled, so let's add it to the list. (cherry picked from commit 93c9f9cde4d5dce13cc3bc45c5d90d1b7b0a80cf) --- 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 1372d2a8d097..5ec4d037073d 100644 --- a/nixos/modules/services/home-automation/zigbee2mqtt.nix +++ b/nixos/modules/services/home-automation/zigbee2mqtt.nix @@ -113,6 +113,7 @@ in "AF_INET" "AF_INET6" "AF_NETLINK" + "AF_UNIX" ]; RestrictNamespaces = true; RestrictRealtime = true;