From 56829798f93e22da2e4b64ccdd4f122fa3f950e7 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 23 Sep 2024 16:37:37 -0400 Subject: [PATCH] feat(hass): add zeroconf settings --- devices/homie/modules/music/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devices/homie/modules/music/default.nix b/devices/homie/modules/music/default.nix index 369aaf0e..53f8a96c 100644 --- a/devices/homie/modules/music/default.nix +++ b/devices/homie/modules/music/default.nix @@ -28,6 +28,11 @@ hardware.pulseaudio = { enable = true; + zeroconf = { + discovery.enable = true; + publish.enable = true; + }; + extraConfig = '' load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 ''; @@ -60,7 +65,7 @@ settings.global = let cacheDir = "/etc/spotifyd"; in { - device_name = config.networking.hostName; + device_name = config.networking.hostName + " connect"; device_type = "speaker"; zeroconf_port = 33798;