❄️ Nix configurations
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

adding mosquitto and zigbee2mqtt

+18 -1
+18 -1
modules/nixos/server/home-assistant.nix
··· 12 12 extraOptions = [ 13 13 "--privileged" 14 14 "--network=host" 15 - "--device=/dev/ttyUSB0:/dev/ttyUSB0" 15 + # "--device=/dev/ttyUSB0:/dev/ttyUSB0" 16 16 ]; 17 17 }; 18 18 }; 19 + 20 + networking.firewall.allowedTCPPorts = [ 8123 1883 ]; 19 21 20 22 services.traefik.dynamicConfigOptions.http = { 21 23 routers.hass = { ··· 25 27 }; 26 28 services.hass.loadBalancer.servers = [{url = "http://localhost:8123";}]; 27 29 }; 30 + 31 + services.mosquitto = { 32 + enable = true; 33 + listeners = [ 34 + { 35 + acl = [ "pattern readwrite #" ]; 36 + omitPasswordAuth = true; 37 + settings.allow_anonymous = true; 38 + } 39 + ]; 40 + }; 41 + 42 + environment.systemPackages = [ 43 + pkgs.zigbee2mqtt_2 44 + ]; 28 45 }