add a home-assistant instance

This commit is contained in:
stupidcomputer 2024-10-28 20:10:39 -05:00
parent 808ce0fefc
commit 6ea59761da
4 changed files with 35 additions and 0 deletions

View File

@ -5,5 +5,6 @@
./photoprism.nix
./wireguard.nix
./grafana.nix
./hass.nix
];
}

View File

@ -0,0 +1,17 @@
{ lib, config, pkgs, ...}:
{
services.home-assistant = {
enable = true;
extraComponents = [
"esphome"
"met"
"radio_browser"
];
config = {
http.server_host = "10.100.0.2";
http.server_port = 9004;
default_config = {};
};
};
}

View File

@ -19,6 +19,7 @@
./wireguard.nix
./photoprism-bridge.nix
./grafana-bridge.nix
./homeassistant-bridge.nix
./prometheus.nix
];

View File

@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
{
services.nginx.virtualHosts."home.beepboop.systems" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://10.100.0.2:9004";
proxyWebsockets = true;
extraConfig = ''
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_buffering off;
'';
};
};
}