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

134 lines
3.9 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: {
# Needed for spotifyplus
inherit (self.packages.${pkgs.system}) urllib3;
# 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"];
};
chore: update flake.lock Flake Inputs: • Updated input 'agsV2': 'github:Aylur/ags/89b8918' (2024-10-15) → 'github:Aylur/ags/a93f0ac' (2024-10-16) • Updated input 'astal': 'github:Aylur/astal/dcc3870' (2024-10-15) → 'github:Aylur/astal/f763c44' (2024-10-18) • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=601219f' (2024-10-14) → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=1016597' (2024-10-18) • Updated input 'home-manager': 'github:nix-community/home-manager/e1aec54' (2024-10-14) → 'github:nix-community/home-manager/09a0c0c' (2024-10-18) • Updated input 'hyprland': 'github:hyprwm/Hyprland/01c2ff3' (2024-10-14) → 'github:hyprwm/Hyprland/0e630e9' (2024-10-17) • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS/2317058' (2024-10-15) → 'github:Jovian-Experiments/Jovian-NixOS/bb69165' (2024-10-17) • Updated input 'libratbag-src': 'github:libratbag/libratbag/9f4789f' (2024-09-24) → 'github:libratbag/libratbag/dcc5def' (2024-10-16) • Updated input 'nix-gaming': 'github:fufexan/nix-gaming/2c8d8bb' (2024-10-14) → 'github:fufexan/nix-gaming/79f0e31' (2024-10-18) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/5633bcf' (2024-10-09) → 'github:NixOS/nixpkgs/5785b6b' (2024-10-16) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/b9770ad' (2024-10-15) → 'github:nix-community/nixpkgs-wayland/2535bdd' (2024-10-18) • Updated input 'nvim-theme-src': 'github:Mofiqul/dracula.nvim/fdf503e' (2024-07-12) → 'github:Mofiqul/dracula.nvim/94fa788' (2024-10-16) • Updated input 'tuya-local-src': 'github:make-all/tuya-local/c9a8913' (2024-10-15) → 'github:make-all/tuya-local/587d622' (2024-10-18) Docker Images: • vegardit/gitea-act-runner dind-latest: sha256:06ab3f910c5015792942d8c338fd865d3dff1163cea2e8c3efd32330c7775802 → sha256:74c7cddafcf4c8cadad1317f043cd7ed9f675617197051d38812b262a7afd82b • postgres 14: sha256:626046694f31a4a6a92511bbeca43f7e78ea8c6ae2f2ed70bbaa9b9abd5b67ab → sha256:c9fcaef49a1ca7deae24437c705bf7485922f8a768a140006c5d8abb3f6cac7b • codeberg.org/forgejo/forgejo 9: sha256:1f7c844e1c723ba09411a31f9a3ef8f551e6d77c9ff4f200ef36b870e8c8a3d7 → sha256:085092799d1b25370956972185145607246d692da64c18ef55c2da20eecc855d • rssbridge/rss-bridge latest: sha256:c4fd6ad6e395310cc5d49665bfca638d09ba6cf9d03ad60a5c36361cb7c05251 → sha256:da785b43f43e4f718c525d71453d6b7011db98c68434f02315cb7ee1ecc88889 • nextcloud fpm: sha256:38149fa4fefab1e56a976d37db0bb22a049c4e6faf4e1d755fdc536ff5e7f69a → sha256:29088f7a332ae59f57b0b121bd9d6c6cf0dda1c536c8b7c889f28182e1c26601 • nginx latest: sha256:d2eb56950b84efe34f966a2b92efb1a1a2ea53e7e93b94cdf45a27cf3cd47fc0 → sha256:28402db69fec7c17e179ea87882667f1e054391138f77ffaf0c3eb388efc3ffb • onlyoffice/documentserver latest: sha256:b9e3c35eab182d3de822a53b109b0f27070f6eacea3b1388b9c50d1182f638f2 → sha256:2b0180b8ca27b36f27e0ddea0e9e8a5b1d40fcf478dc31f7e2efcfb9ce1bf42a • ghcr.io/linuxserver/bazarr latest: sha256:d7d431c29d1c94e7009b6b8b1eb5078689416278b5e6664cad864b28b9ead345 → sha256:5baf571c177eda579fbaa080ade2135bce9097bc3c165f92d30e399df64d0bc4 • ghcr.io/linuxserver/sabnzbd latest: sha256:f87f9d4fa0e19f8e7b292638b3fa89cafc4a96d858fbda8106e3cea6343432c1 → sha256:ab4fc46cb5e2702f640b28bdc9b460c98b73a9898dd61f7068229f140c26409a • docker.io/fallenbagel/jellyseerr latest: sha256:319b09a7db75d697bedc41f6784efd47b8f213a26819d636dec2050efe816567 → sha256:8ff28894f9fd28bf36626fb98ddd0ee79d778de22a5dc75d69a845281e19115b Firefox Addons: bitwarden: 2024.9.1 -> 2024.10.0
2024-10-18 19:35:08 -04:00
# FIXME: some cfn-lint tests don't pass. make nixpkgs issue?
aws-sam-translator = prev.aws-sam-translator.overridePythonAttrs (o: rec {
version = "1.91.0";
format = "setuptools";
src = pkgs.fetchFromGitHub {
owner = "aws";
repo = "serverless-application-model";
rev = "refs/tags/v${version}";
hash = "sha256-jcRpn9STkfg1xTwYzkpoYyuG0Hrv0XnbW1h6+SxzEjA=";
};
});
cfn-lint = prev.cfn-lint.overridePythonAttrs (o: {
version = "1.17.2+0a31357";
format = "pyproject";
src = pkgs.fetchFromGitHub {
owner = "aws-cloudformation";
repo = "cfn-lint";
rev = "0a31357504a25af5c0357a4b59e0d6b10f39571b";
hash = "sha256-wsRK/DDKSCrGsz2h0rG10VLkpbVKqwTqC3UQ1j0ee/U=";
};
nativeBuildInputs = [final.defusedxml];
disabledTests = o.disabledTests ++ ["test_build_graph"];
});
};
})
.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.legacyPackages.${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;
}