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 = { services.spotifyd = {
enable = true; enable = true;
config = '' settings.zeroconf_port = 18572;
zeroconf_port = 18572
'';
}; };
networking.firewall.allowedTCPPorts = [ 18572 ]; networking.firewall.allowedTCPPorts = [ config.services.spotifyd.settings.zeroconf_port ];
} }