mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 11:18:24 +02:00
remove music assistant and open ports for sonos
Signed-off-by: Hadi <[email protected]>
This commit is contained in:
@@ -46,7 +46,6 @@ in {
|
|||||||
"manual"
|
"manual"
|
||||||
"meteo_france"
|
"meteo_france"
|
||||||
"remote_calendar"
|
"remote_calendar"
|
||||||
"music_assistant"
|
|
||||||
"systemmonitor"
|
"systemmonitor"
|
||||||
];
|
];
|
||||||
customComponents = plugins.customComponents;
|
customComponents = plugins.customComponents;
|
||||||
@@ -107,28 +106,16 @@ in {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.music-assistant = {
|
|
||||||
enable = true;
|
|
||||||
openFirewall = true;
|
|
||||||
providers = [
|
|
||||||
"hass"
|
|
||||||
"hass_players"
|
|
||||||
"spotify"
|
|
||||||
"sonos"
|
|
||||||
"airplay"
|
|
||||||
"chromecast"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.matter-server = {
|
services.matter-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraArgs.primary-interface = config.var.networkInterface;
|
extraArgs.primary-interface = config.var.networkInterface;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [5353];
|
networking.firewall.allowedUDPPorts = [5353];
|
||||||
|
# Sonos event subscriptions (callbacks from speakers to HA)
|
||||||
|
networking.firewall.allowedTCPPorts = [1400];
|
||||||
|
|
||||||
services.cloudflared.tunnels."${config.var.tunnelId}".ingress = {
|
services.cloudflared.tunnels."${config.var.tunnelId}".ingress = {
|
||||||
"hass.${config.var.domain}" = "http://localhost:${toString config.services.home-assistant.config.http.server_port}";
|
"hass.${config.var.domain}" = "http://localhost:${toString config.services.home-assistant.config.http.server_port}";
|
||||||
"music.${config.var.domain}" = "http://localhost:8095";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user