diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix index dc1900f52c1e..315f536a8039 100644 --- a/nixos/modules/services/home-automation/home-assistant.nix +++ b/nixos/modules/services/home-automation/home-assistant.nix @@ -406,14 +406,15 @@ in http = { # https://www.home-assistant.io/integrations/http/ server_host = mkOption { - type = types.either types.str (types.listOf types.str); - default = [ - "0.0.0.0" - "::" + type = types.nullOr (types.either types.str (types.listOf types.str)); + default = null; + example = [ + "::1" + "127.0.0.1" ]; - example = "::1"; description = '' - Only listen to incoming requests on specific IP/host. The default listed assumes support for IPv4 and IPv6. + Only listen to incoming requests on specific IP/host. + The option is unset by default, meaning that Home Assistant listens on all available addresses. ''; };