From c50b658b5aff48cd8072b046d6bffd0f7e5643bc Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 13 Feb 2024 15:09:50 -0600 Subject: [PATCH] Expand HomeAssistant --- hosts/genesis/default.nix | 3 +++ hosts/genesis/home-assistant.nix | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/hosts/genesis/default.nix b/hosts/genesis/default.nix index 771f86d..8b5439b 100644 --- a/hosts/genesis/default.nix +++ b/hosts/genesis/default.nix @@ -31,4 +31,7 @@ #}; networking.hostName = "genesis"; # Define your hostname. + environment.systemPackages = with pkgs; [ + awscli2 + ]; } diff --git a/hosts/genesis/home-assistant.nix b/hosts/genesis/home-assistant.nix index 2ba4f4e..213368c 100755 --- a/hosts/genesis/home-assistant.nix +++ b/hosts/genesis/home-assistant.nix @@ -17,10 +17,13 @@ in "eufy" "lovelace" "nextcloud" + "piper" "smart_meter_texas" "solaredge" "tplink" + "whisper" "wiz" + "wyoming" "zwave_js" ]; }).overrideAttrs (oldAttrs: { @@ -42,6 +45,25 @@ in }; }; + # Helps with Voice stuff for Home Assistant + services.wyoming = { + faster-whisper.servers = { + greg = { + enable = true; + beamSize = 1; # wut? + device = "auto"; # Could be CPU or CUDA + language = "en"; + model = "base-int8"; + uri = "tcp://0.0.0.0:13415"; + }; + }; + piper.servers.greg = { + enable = true; + uri = "tcp://0.0.0.0:13416"; + voice = "en_US-amy-medium"; + }; + }; + # Although NixOS has a package for Home Assistant, it is not kept as up to date as the container and the upstream # is very vocal about only supporting their own container or the HAOS deployments. So we deploy the container here # and avoid any potential messes from that