From d364890bf637489d509b6fd75f2b2bc5748bb22b Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Wed, 30 Sep 2026 15:31:53 +0200 Subject: [PATCH] add HA components Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- server-modules/home-assistant/default.nix | 20 +++++++++++++++++++- server-modules/home-assistant/plugins.nix | 6 +++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/server-modules/home-assistant/default.nix b/server-modules/home-assistant/default.nix index 82a59cf8..f4f0cc89 100644 --- a/server-modules/home-assistant/default.nix +++ b/server-modules/home-assistant/default.nix @@ -46,6 +46,8 @@ in { "manual" "meteo_france" "remote_calendar" + "music_assistant" + "systemmonitor" ]; customComponents = plugins.customComponents; customLovelaceModules = plugins.customLovelaceModules; @@ -105,6 +107,19 @@ in { done ''; + services.music-assistant = { + enable = true; + openFirewall = true; + providers = [ + "hass" + "hass_players" + "spotify" + "sonos" + "airplay" + "chromecast" + ]; + }; + services.matter-server = { enable = true; extraArgs.primary-interface = config.var.networkInterface; @@ -112,5 +127,8 @@ in { networking.firewall.allowedUDPPorts = [5353]; - services.cloudflared.tunnels."${config.var.tunnelId}".ingress."hass.${config.var.domain}" = "http://localhost:${toString config.services.home-assistant.config.http.server_port}"; + services.cloudflared.tunnels."${config.var.tunnelId}".ingress = { + "hass.${config.var.domain}" = "http://localhost:${toString config.services.home-assistant.config.http.server_port}"; + "music.${config.var.domain}" = "http://localhost:8095"; + }; } diff --git a/server-modules/home-assistant/plugins.nix b/server-modules/home-assistant/plugins.nix index 7f07b3f8..8776df4e 100644 --- a/server-modules/home-assistant/plugins.nix +++ b/server-modules/home-assistant/plugins.nix @@ -54,7 +54,11 @@ ''; }; in { - customComponents = [idfm]; + customComponents = [ + idfm + pkgs.home-assistant-custom-components.adaptive_lighting + pkgs.home-assistant-custom-components.spook + ]; customLovelaceModules = [ atomic-calendar-revive multiday-calendar-card