hswaw/sound: add esphome integration

Change-Id: I535256056aed6dfec4ddf4843203990324f49564
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1950
Reviewed-by: informatic <informatic@hackerspace.pl>
changes/50/1950/2
noisersup 2024-04-27 20:18:39 +00:00 committed by informatic
parent cf37d62a24
commit d843b782a1
2 changed files with 11 additions and 3 deletions

View File

@ -121,6 +121,7 @@ in {
"frontend"
"cast"
"spotify"
"esphome"
];
extraPackages = ps: [
ps.aiohttp-cors
@ -140,6 +141,12 @@ in {
];
};
services.esphome = {
enable = true;
port = 6052;
address = "0.0.0.0";
};
sound.enable = true;
# TODO create config that setups volume, default output etc.
@ -229,6 +236,7 @@ in {
1883 # mqtt (mosquitto)
8883 # tls mqtt (mosquitto)
4713 # pulseaudo
6052 # esphome
];
};

View File

@ -67,9 +67,9 @@ in
# error: The option `services.home-assistant.extraComponents' does not exist.
"sound.waw.hackerspace.pl" = import
(fetchTarball {
# NixOS/nixpkgs/nixos-unstable 2022-09-10
url = "https://api.github.com/repos/NixOS/nixpkgs/tarball/2da64a81275b68fdad38af669afeda43d401e94b";
sha256 = "1k71lmzdaa48yqkmsnd22n177qmxxi4gj2qcmdbv0mc6l4f27wd0";
# NixOS/nixpkgs/nixos-unstable 2024-04-15
url = "https://api.github.com/repos/NixOS/nixpkgs/tarball/fc69edccf533e2731ab8850c59482907e0d4fc28";
sha256 = "1rzpidjcjgj5dl6q1j5vll375qaq0b9j9wbhfg2a19fyk2z5nz64";
})
{ };