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

95 lines
2.2 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: {
chore: update sources Flake Inputs: • Updated input 'astal': 'github:Aylur/astal' (2025-01-08) rev: c5b219171cbab489b01087a372e24e3a719f6299 → 'github:Aylur/astal' (2025-01-10) rev: ef4f95608481414053ecdbe4de29bd86fb452813 • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay' (2024-12-30) rev: 34d7a588e8b4b2ceefcccea9342e8fbee9f26100 → 'github:matt1432/discord-nightly-overlay' (2025-01-10) rev: dad509df3ad7ec9f8e7da5cb02e6bc2be761569b • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2025-01-08) rev: f6f8f2068601f7e412643a2a589bedce6e2c5fce → 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2025-01-10) rev: 3a200a4c9f74c93c7fa97d013613db60a3290538 • Updated input 'gtk-theme-src': 'github:dracula/gtk' (2024-12-05) rev: 3478e48925f33af411393adaa4043193f03a4e9a → 'github:dracula/gtk' (2025-01-10) rev: 79235b53c33f02d826d76cf991f5aa8f04ed4e76 • Updated input 'home-manager': 'github:nix-community/home-manager' (2025-01-08) rev: 7e00856596891850ba5ad4c5ecd2ed74468c08c5 → 'github:nix-community/home-manager' (2025-01-10) rev: 2532b500c3ed2b8940e831039dcec5a5ea093afc • Updated input 'hyprgrass': 'github:horriblename/hyprgrass' (2025-01-08) rev: f73785a7fb41d89b4c0ac51315524c97c4b5f803 → 'github:horriblename/hyprgrass' (2025-01-02) rev: bdfa960b97ac98ad9d05c908ee20e053e2942928 • Updated input 'hyprutils': 'github:hyprwm/hyprutils' (2025-01-06) rev: 3c895da64b0eb19870142196fa48c07090b441c4 → 'github:hyprwm/hyprutils' (2025-01-11) rev: 72dfbf52967e4040693164319a027d8ac6315887 • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS' (2025-01-08) rev: fa094d2e1fa8e7da839f1960012f948bb7f99c97 → 'github:Jovian-Experiments/Jovian-NixOS' (2025-01-11) rev: 1ddf0b3bfe076fa50b84244e42a55b9234f96083 • Updated input 'kompass': 'github:kotontrion/kompass' (2025-01-03) rev: 6faee1808b4bc7e0892fff86364151b83f0688a3 → 'github:kotontrion/kompass' (2025-01-10) rev: 0cdc3cba14ebbfe8d2b95507ad8a8cb0a7248bb8 • Updated input 'nix-fast-build': 'github:Mic92/nix-fast-build' (2025-01-06) rev: a06a8b2c079f7b6dab491a12555387bdb737cc44 → 'github:Mic92/nix-fast-build' (2025-01-11) rev: 906af17fcd50c84615a4660d9c08cf89c01cef7d • Updated input 'nix-gaming': 'github:fufexan/nix-gaming' (2025-01-07) rev: 6f431d614aa0e50a01253b7167c8c97a0ec83872 → 'github:fufexan/nix-gaming' (2025-01-11) rev: 0e562d23a2df60788af3aeda21590032b416be7c • Updated input 'nix-index-db': 'github:Mic92/nix-index-database' (2025-01-05) rev: 816a6ae88774ba7e74314830546c29e134e0dffb → 'github:Mic92/nix-index-database' (2025-01-09) rev: a2200b499efa01ca8646173e94cdfcc93188f2b8 • Updated input 'nixpkgs': 'github:NixOS/nixpkgs' (2025-01-04) rev: 8f3e1f807051e32d8c95cd12b9b421623850a34d → 'github:NixOS/nixpkgs' (2025-01-08) rev: bffc22eb12172e6db3c5dde9e3e5628f8e3e7912 • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland' (2025-01-08) rev: 241a015df2cb7602fefe613e118f0c880d60897d → 'github:nix-community/nixpkgs-wayland' (2025-01-11) rev: 37553f5a9728a5ced261f0aa9c050056e7f61bde • Updated input 'sops-nix': 'github:Mic92/sops-nix' (2025-01-06) rev: c9c88f08e3ee495e888b8d7c8624a0b2519cb773 → 'github:Mic92/sops-nix' (2025-01-10) rev: f214c1b76c347a4e9c8fb68c73d4293a6820d125 • Updated input 'spotifyplus-src': 'github:thlucas1/homeassistantcomponent_spotifyplus' (2025-01-07) rev: 2f98bb9b66bd8cdb1954096e4f87b759d2237b6e → 'github:thlucas1/homeassistantcomponent_spotifyplus' (2025-01-09) rev: 32e04db69dbdc85c58574c0edb9f8aca57146b32 • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython' (2025-01-07) rev: a4f7e7582d6697f1f0e2e0e175d82f8c13ac79a9 → 'github:thlucas1/SpotifyWebApiPython' (2025-01-11) rev: 0f7dc906b5a0c7e4e960ff0a87a51d050aec45b7 • Updated input 'tuya-local-src': 'github:make-all/tuya-local' (2025-01-08) rev: 409421ebff7bd8d32e1a5ce7c569fbf96cb36528 → 'github:make-all/tuya-local' (2025-01-11) rev: 29def3abf990d04f311a0d4324d54aedc4b841c8 Docker Images: • rssbridge/rss-bridge latest: sha256:10c4e470397dffb67322e7c66b679c9ebf618858b0f435f1095ff035a2881fe6 → sha256:2f94bc58b926a9ae2efb62c2bd08723b22adceb47d5590be00b56dc05ba2a0e3 • postgres 15-alpine: sha256:f85dd74a714c67792c72fc609becff10e0b0eaffca7b40aa1c6251d09c02b5d4 → sha256:93a6166360be8f1d116b7ea97ebb8dea9e2c9c746349e952738bbba72a961d7c • ghcr.io/linuxserver/sabnzbd latest: sha256:80242140e786c1c73d867e8c84bba16c0ebd20cd27a5c6cf69196168b3fe5e35 → sha256:a7fb5bd7208bfd5915c2527cef57dd8b00bdf684b68e5c9ec4326f10b6cf94b3 • ghcr.io/linuxserver/sonarr latest: sha256:23f6911b2b81cb69aa03166b53c15081d5c3a5ed58f5b183c5900c2d8fc9759a → sha256:ca71add37a9cdbb914c7bd5b06f98bf5d2062848c8de6ac3ee09e69a4c170b27 Firefox Addons: sound-volume: 1.5.6 -> 1.5.8 sponsorblock: 5.10.3 -> 5.10.5 Node modules: @eslint/js: 9.17.0 -> 9.18.0 eslint: 9.17.0 -> 9.18.0
2025-01-11 15:06:31 -05:00
# FIXME: https://pr-tracker.nelim.org/?pr=370782
gevent = prev.gevent.overridePythonAttrs rec {
pname = "gevent";
version = "24.11.1";
src = pkgs.fetchPypi {
inherit pname version;
hash = "sha256-i9FBkRTp5KPtM6W612av/5o892XLRApYKhs6m8gMGso=";
};
};
# HassTimer has way too many collisions with my custom timer sentences
home-assistant-intents = prev.home-assistant-intents.overrideAttrs (o: {
nativeBuildInputs = o.nativeBuildInputs ++ [pkgs.findutils];
postPatch = ''
find ./. -name "*Timer*" -delete
find ./. -name "*Start*" -delete
'';
});
};
};
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
2024-12-27 04:27:46 -05:00
voice = "en_US-hfc_male-medium";
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";
threshold = 0.55;
2024-12-20 02:29:24 -05:00
vadThreshold = 0.50;
customModelsDirectories = ["${wakewords-src}/en/yo_homie"];
2024-12-20 02:29:24 -05:00
preloadModels = ["yo_homie"];
extraArgs = ["--debug"];
};
};
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;
}