forked from Yuka/c3h-nixfiles
fix spotifyd service config and firewall setup
This commit is contained in:
parent
d1ebaa7a86
commit
c5349029ab
3 changed files with 78 additions and 2 deletions
|
|
@ -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 ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue