nixos-configs/devices/homie/modules/home-assistant/assist.nix

105 lines
2.7 KiB
Nix
Raw Normal View History

{
pkgs,
self,
wakewords-src,
...
}: {
imports = [
self.nixosModules.esphome-plus
self.nixosModules.wyoming-plus
];
services = {
home-assistant = {
package =
(pkgs.home-assistant.override {
packageOverrides = final: prev: {
# Version before HassStartTimer
home-assistant-intents = final.buildPythonPackage rec {
pname = "home-assistant-intents";
version = "2024.4.3";
format = "wheel";
disabled = final.pythonOlder "3.9";
src = final.fetchPypi {
inherit version format;
pname = "home_assistant_intents";
dist = "py3";
python = "py3";
hash = "sha256-GraYVtioKIoKlPRBhhhzlbBfI6heXAaA1MQpUqAgEDQ=";
};
build-system = [final.setuptools];
doCheck = false;
pytestFlagsArray = ["intents/tests"];
};
};
})
.overrideAttrs {
disabledTestPaths = [
# we neither run nor distribute hassfest
"tests/hassfest"
# we don't care about code quality
"tests/pylint"
# redundant component import test, which would make debugpy & sentry expensive to review
"tests/test_circular_imports.py"
# don't bulk test all components
"tests/components"
# Make old intent version build
"tests/scripts/test_check_config.py"
"tests/test_bootstrap.py"
"tests/helpers"
];
};
customComponents = builtins.attrValues {
2024-09-19 22:16:11 -04:00
inherit
(self.scopedPackages.${pkgs.system}.hass-components)
chore: update flake.lock Flake Inputs: • Updated input 'ags': 'github:Aylur/ags/cd543af' (2024-09-25) → 'github:Aylur/ags/60180a1' (2024-10-07) • Updated input 'astal': 'github:Aylur/astal/e8536ed' (2024-10-03) → 'github:Aylur/astal/2a3bb3a' (2024-10-07) • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay/5cc5b7f' (2024-09-28) → 'github:matt1432/discord-nightly-overlay/256588e' (2024-10-06) • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=29a21ff' (2024-10-06) → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=0a8d176' (2024-10-07) • Updated input 'home-manager': 'github:nix-community/home-manager/509dbf8' (2024-10-04) → 'github:nix-community/home-manager/0386303' (2024-10-07) • Updated input 'hyprland': 'github:hyprwm/Hyprland/0ec6072' (2024-10-05) → 'github:hyprwm/Hyprland/613eac4' (2024-10-08) • Updated input 'hyprland-plugins': 'github:hyprwm/hyprland-plugins/9215288' (2024-09-30) → 'github:hyprwm/hyprland-plugins/d05eb1f' (2024-10-08) • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS/cb63dc9' (2024-10-04) → 'github:Jovian-Experiments/Jovian-NixOS/a25f915' (2024-10-08) • Updated input 'nh': 'github:viperML/nh/7650b37' (2024-09-07) → 'github:viperML/nh/afdff9a' (2024-10-08) • Updated input 'nix-fast-build': 'github:Mic92/nix-fast-build/2ba025e' (2024-10-05) → 'github:Mic92/nix-fast-build/1775c73' (2024-10-07) • Updated input 'nix-gaming': 'github:fufexan/nix-gaming/8801edc' (2024-10-06) → 'github:fufexan/nix-gaming/d5e4fb8' (2024-10-08) • Updated input 'nix-index-db': 'github:Mic92/nix-index-database/f9fdf82' (2024-09-30) → 'github:Mic92/nix-index-database/5fce10c' (2024-10-07) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/bc947f5' (2024-10-04) → 'github:NixOS/nixpkgs/c31898a' (2024-10-06) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/736b015' (2024-10-05) → 'github:nix-community/nixpkgs-wayland/0a5e8f7' (2024-10-08) • Updated input 'sops-nix': 'github:Mic92/sops-nix/3198a24' (2024-09-30) → 'github:Mic92/sops-nix/06535d0' (2024-10-08) • Updated input 'tuya-local-src': 'github:make-all/tuya-local/4ede5ce' (2024-10-04) → 'github:make-all/tuya-local/df26ea0' (2024-10-08) Misc Sources: Vuetorrent: 2.13.3 -> 2.14.0
2024-10-08 15:11:56 -04:00
extended-ollama-conversation # url is without subdirectory
ha-fallback-conversation
2024-09-30 12:06:05 -04:00
tuya-local
2024-09-19 22:16:11 -04:00
;
};
extraComponents = [
"esphome"
"ollama"
"wyoming"
"scrape"
];
config = {
assist_pipeline = {};
conversation = {};
media_source = {};
};
};
wyoming = {
piper.servers."en" = {
enable = true;
uri = "tcp://127.0.0.1:10200";
# see https://github.com/rhasspy/rhasspy3/blob/master/programs/tts/piper/script/download.py
voice = "en-us-ryan-low"; # using `hfc male (medium)` in GUI
speaker = 0;
};
2024-09-12 18:21:31 -04:00
openwakeword = {
enable = true;
2024-09-12 18:21:31 -04:00
uri = "tcp://127.0.0.1:10400";
customModelsDirectories = ["${wakewords-src}/en/yo_homie"];
};
};
esphome = {
enable = true;
address = "100.64.0.10";
port = 6052;
};
};
2024-09-05 22:42:17 -04:00
# In case tailscale is down
boot.kernel.sysctl."net.ipv4.ip_nonlocal_bind" = 1;
}