From 22bc76a0fc5eda6735fe7711a8afc330fe44e5ca Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Tue, 15 Jul 2025 10:42:32 +0000
Subject: [PATCH] Add smini nix config with modularised config

---
 nixos/home-assistant.nix |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/nixos/home-assistant.nix b/nixos/home-assistant.nix
new file mode 100644
index 0000000..666a2b4
--- /dev/null
+++ b/nixos/home-assistant.nix
@@ -0,0 +1,46 @@
+{ 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;
+    };
+  };
+}

--
Gitblit v1.10.0