mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
ha ports
This commit is contained in:
parent
94668cf86b
commit
7ee7280801
1 changed files with 9 additions and 1 deletions
|
|
@ -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) [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue