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 93c9f9cde4)
This commit is contained in:
Florian Klink 2026-06-20 21:10:09 +03:00 committed by github-actions[bot]
commit f40beec906

View file

@ -113,6 +113,7 @@ in
"AF_INET"
"AF_INET6"
"AF_NETLINK"
"AF_UNIX"
];
RestrictNamespaces = true;
RestrictRealtime = true;