fix deprecation warning

use settings attribute
This commit is contained in:
Yuka 2021-10-24 23:38:49 +02:00
parent 349bc436a4
commit 51a691efbf
Signed by: Yuka
GPG key ID: B95AE06334AFF6BA

View file

@ -1,12 +1,10 @@
{ ... }:
{ config, ... }:
{
services.spotifyd = {
enable = true;
config = ''
zeroconf_port = 18572
'';
settings.zeroconf_port = 18572;
};
networking.firewall.allowedTCPPorts = [ 18572 ];
networking.firewall.allowedTCPPorts = [ config.services.spotifyd.settings.zeroconf_port ];
}