From 9be46dd2620467b67896886a82a1139d3893c191 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Fri, 23 Oct 2026 01:13:05 +0200 Subject: [PATCH] feat: minimal home assistant setup --- hosts/ws-home/configuration.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/hosts/ws-home/configuration.nix b/hosts/ws-home/configuration.nix index 7501d5f..f0a841d 100644 --- a/hosts/ws-home/configuration.nix +++ b/hosts/ws-home/configuration.nix @@ -18,11 +18,11 @@ # Matter controller services.matterjs-server = { enable = true; - listenAddress = "::"; - openFirewall = true; + listenAddress = "127.0.0.1"; }; modules.impermanence.directories = [ "/var/lib/private/matterjs-server" + "/var/lib/hass" ]; systemd.tmpfiles.rules = [ "d /var/lib/private 0700 root root -" @@ -32,6 +32,18 @@ 5540 # Matter ]; + # Home Assistant, only integrating with matterjs-server + services.home-assistant = { + enable = true; + extraComponents = [ "matter" ]; + config = { + homeassistant = { }; + }; + }; + networking.firewall.allowedTCPPorts = [ + 8123 # Home Assistant + ]; + # Set up hardware imports = [ ./hardware-configuration.nix ]; }