From 9535144280adbf00c98e5aea616db4122fb7738c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 14 Nov 2023 23:30:00 +0200 Subject: [PATCH] vno1-oh2: esphome --- data.nix | 1 + modules/services/hass/default.nix | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/data.nix b/data.nix index 83fba1d..b4cd026 100644 --- a/data.nix +++ b/data.nix @@ -112,6 +112,7 @@ rec { mHosts = attrVals [ "mxp10.motiejus.jakst" + "mtwork.motiejus.jakst" "fwminex.motiejus.jakst" ] hosts; diff --git a/modules/services/hass/default.nix b/modules/services/hass/default.nix index a063a07..ad6d12b 100644 --- a/modules/services/hass/default.nix +++ b/modules/services/hass/default.nix @@ -13,12 +13,18 @@ in { config = lib.mkIf cfg.enable { mj.services.friendlyport.ports = [ { - subnets = [myData.subnets.tailscale.cidr]; + subnets = myData.subnets.motiejus.cidrs; tcp = [myData.ports.hass]; } + { + subnets = myData.subnets.motiejus.cidrs; + tcp = [config.services.esphome.port]; + } ]; services = { + esphome.enable = true; + home-assistant = { enable = true; extraComponents = [