hswaw/sound: add esphome integration
Change-Id: I535256056aed6dfec4ddf4843203990324f49564
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1950
Reviewed-by: informatic <informatic@hackerspace.pl>
diff --git a/hswaw/machines/sound.waw.hackerspace.pl/configuration.nix b/hswaw/machines/sound.waw.hackerspace.pl/configuration.nix
index e9beaee..f43b124 100644
--- a/hswaw/machines/sound.waw.hackerspace.pl/configuration.nix
+++ b/hswaw/machines/sound.waw.hackerspace.pl/configuration.nix
@@ -121,6 +121,7 @@
"frontend"
"cast"
"spotify"
+ "esphome"
];
extraPackages = ps: [
ps.aiohttp-cors
@@ -140,6 +141,12 @@
];
};
+ 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 @@
1883 # mqtt (mosquitto)
8883 # tls mqtt (mosquitto)
4713 # pulseaudo
+ 6052 # esphome
];
};
diff --git a/ops/hive.nix b/ops/hive.nix
index f233bcb..a8b1eea 100644
--- a/ops/hive.nix
+++ b/ops/hive.nix
@@ -67,9 +67,9 @@
# 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";
})
{ };