From 4b528948ec1a7e70ea29052e34e37b16f822c3de Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 23 Jan 2026 22:38:38 +0100 Subject: [PATCH] Revert "nixos/home-assistant: do not set server_host by default" This reverts commit 62ac81aaf9afc9080b52b3a1f177cfef6e98d8b6. The server_host deprecation has been reverted, so we're going back to defaulting it to dualstack wildcard. --- .../services/home-automation/home-assistant.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix index 315f536a8039..dc1900f52c1e 100644 --- a/nixos/modules/services/home-automation/home-assistant.nix +++ b/nixos/modules/services/home-automation/home-assistant.nix @@ -406,15 +406,14 @@ in http = { # https://www.home-assistant.io/integrations/http/ server_host = mkOption { - type = types.nullOr (types.either types.str (types.listOf types.str)); - default = null; - example = [ - "::1" - "127.0.0.1" + type = types.either types.str (types.listOf types.str); + default = [ + "0.0.0.0" + "::" ]; + example = "::1"; description = '' - Only listen to incoming requests on specific IP/host. - The option is unset by default, meaning that Home Assistant listens on all available addresses. + Only listen to incoming requests on specific IP/host. The default listed assumes support for IPv4 and IPv6. ''; };