fix spotifyd service config and firewall setup

This commit is contained in:
busti 2022-01-18 21:28:52 +01:00
parent d1ebaa7a86
commit c5349029ab
3 changed files with 78 additions and 2 deletions

View file

@ -1,11 +1,18 @@
{ config, ... }:
{
disabledModules = [ "services/audio/spotifyd.nix" ];
imports = [ ../modules/spotifyd.nix ];
services.spotifyd = {
enable = true;
settings.zeroconf_port = 18572;
settings.global = {
bitrate = 320;
zeroconf_port = 18572;
};
};
networking.firewall.allowedTCPPorts = [ 4070 config.services.spotifyd.settings.zeroconf_port ];
networking.firewall.allowedTCPPorts = [ 4070 config.services.spotifyd.settings.global.zeroconf_port ];
networking.firewall.allowedUDPPorts = [ 5353 ];
}