add a home-assistant instance

This commit is contained in:
stupidcomputer 2024-10-28 20:10:39 -05:00
parent 808ce0fefc
commit 3a03ca8ce5
3 changed files with 34 additions and 0 deletions

View File

@ -5,5 +5,6 @@
./photoprism.nix ./photoprism.nix
./wireguard.nix ./wireguard.nix
./grafana.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

@ -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;
'';
};
};
}