This commit is contained in:
death916 2025-05-30 23:42:23 -07:00
parent 94668cf86b
commit 7ee7280801

View file

@ -34,7 +34,15 @@
};
# Firewall rule for Home Assistant
networking.firewall.allowedTCPPorts = [ 8123 ];
networking.firewall = {
allowedTCPPorts = [ 8123 ];
allowedUDPPorts = [
5353 # mDNS/Bonjour discovery
1900 # SSDP/UPnP discovery
1901 # UPnP
3702 # WS-Discovery (ONVIF specific)
];
};
# Ensure the `hass` user has access to necessary devices (e.g., Zigbee/Z-Wave dongles)
users.users.hass.extraGroups = lib.mkIf (config.services.home-assistant.enable) [