From f5ed37a7fbadde6ed599a1748e40b1fec07da95a Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Fri, 23 Dec 2022 11:48:32 +0100 Subject: [PATCH] Home network update Baldur: disable proxy buffering for home-assistant Freya: cleanup for setup Loki: home-assistant configuration --- baldur/configuration.nix | 1 + freya/configuration.nix | 6 +----- loki/configuration.nix | 33 ++++++++------------------------- 3 files changed, 10 insertions(+), 30 deletions(-) diff --git a/baldur/configuration.nix b/baldur/configuration.nix index 38e4864..668dcb7 100644 --- a/baldur/configuration.nix +++ b/baldur/configuration.nix @@ -66,6 +66,7 @@ with lib; { locations."/" = { proxyPass = "http://${loki}:8123/"; proxyWebsockets = true; }; extraConfig = '' proxy_pass_header Authorization; + proxy_buffering off; ''; }; "radarr.bertof.net" = ssl // { locations."/" = { proxyPass = "http://${loki}:7878/"; proxyWebsockets = true; }; }; diff --git a/freya/configuration.nix b/freya/configuration.nix index a282a9c..51e6dc0 100644 --- a/freya/configuration.nix +++ b/freya/configuration.nix @@ -1,12 +1,8 @@ { pkgs, lib, ... }: with lib; { boot = { - binfmt.emulatedSystems = [ "armv7l-linux" "aarch64-linux" ]; kernelPackages = pkgs.linuxPackages_latest; - loader = { - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; - }; + loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; }; console = { diff --git a/loki/configuration.nix b/loki/configuration.nix index 25d8a2e..c5ca0d1 100644 --- a/loki/configuration.nix +++ b/loki/configuration.nix @@ -407,20 +407,18 @@ with lib; { external_url = "https://home-assistant.bertof.net"; }; - automation = "!include automations.yaml"; - script = "!include scripts.yaml"; - scene = "!include scenes.yaml"; - http = { use_x_forwarded_for = true; trusted_proxies = [ "172.23.252.242" "::1" "127.0.0.1" ]; }; - esphome = { }; - - cloud = { }; config = { }; + device_tracker = [{ + platform = "bluetooth_tracker"; + request_rssi = true; + }]; + esphome = { }; frontend = { }; history = { }; logbook = { }; @@ -437,6 +435,7 @@ with lib; { }; configDir = "/var/lib/hass"; configWritable = true; + extraPackages = ps: with ps; [ securetar ]; extraComponents = [ "default_config" @@ -444,8 +443,6 @@ with lib; { "accuweather" "alert" "analytics" - "automation" - "backup" "bayesian" "binary_sensor" "blueprint" @@ -455,17 +452,14 @@ with lib; { "camera" "cast" "citybikes" - "config" "configurator" "coronavirus" - "counter" "cover" "default_config" "derivative" "device_automation" "device_sun_light_trigger" "device_tracker" - "dhcp" "dlib_face_detect" "dlib_face_identify" "dlna_dmr" @@ -474,18 +468,11 @@ with lib; { "flux" "group" "hassio" - "input_boolean" - "input_button" - "input_datetime" - "input_number" - "input_select" - "input_text" "jellyfin" "local_file" "media_player" "met" - # "meteoalarm" - "mobile_app" + "meteoalarm" "network" "nmap_tracker" "notify" @@ -495,19 +482,15 @@ with lib; { "radarr" "radio_browser" "random" - # "schedule" - "script" "sonarr" - # "spotify" + "spotify" "tcp" "template" "threshold" - "timer" "tod" # times of the day "trend" "upnp" "workday" - "zeroconf" "zoneminder" ]; };