{ config, libs, pkgs, modulesPath, ... }:
|
|
{
|
services.home-assistant = {
|
enable = true;
|
extraComponents = [
|
# Components required to complete the onboarding
|
"analytics"
|
"google_translate"
|
"met"
|
"radio_browser"
|
"shopping_list"
|
# Recommended for fast zlib compression
|
# https://www.home-assistant.io/integrations/isal
|
"isal"
|
"zha"
|
"plex"
|
"braviatv"
|
"roku"
|
];
|
config = {
|
# Includes dependencies for a basic setup
|
# https://www.home-assistant.io/integrations/default_config/
|
default_config = {};
|
homeassistant = {
|
unit_system = "metric";
|
};
|
http = {
|
server_host = "::1";
|
trusted_proxies = [ "::1" ];
|
use_x_forwarded_for = true;
|
};
|
};
|
};
|
services.nginx.virtualHosts."home.ush.bouncr.xyz" = {
|
extraConfig = ''
|
proxy_buffering off;
|
'';
|
enableACME = true;
|
forceSSL = true;
|
locations."/" = {
|
proxyPass = "http://[::1]:8123";
|
proxyWebsockets = true;
|
};
|
};
|
}
|