vno1-oh2: esphome

This commit is contained in:
Motiejus Jakštys 2023-11-14 23:30:00 +02:00
parent 2e2cc27364
commit 9535144280
2 changed files with 8 additions and 1 deletions

View File

@ -112,6 +112,7 @@ rec {
mHosts = mHosts =
attrVals [ attrVals [
"mxp10.motiejus.jakst" "mxp10.motiejus.jakst"
"mtwork.motiejus.jakst"
"fwminex.motiejus.jakst" "fwminex.motiejus.jakst"
] ]
hosts; hosts;

View File

@ -13,12 +13,18 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
mj.services.friendlyport.ports = [ mj.services.friendlyport.ports = [
{ {
subnets = [myData.subnets.tailscale.cidr]; subnets = myData.subnets.motiejus.cidrs;
tcp = [myData.ports.hass]; tcp = [myData.ports.hass];
} }
{
subnets = myData.subnets.motiejus.cidrs;
tcp = [config.services.esphome.port];
}
]; ];
services = { services = {
esphome.enable = true;
home-assistant = { home-assistant = {
enable = true; enable = true;
extraComponents = [ extraComponents = [