From 51a691efbf2190c7adb7ae0f48f6506c21d012f1 Mon Sep 17 00:00:00 2001 From: Yureka Date: Sun, 24 Oct 2021 23:38:49 +0200 Subject: [PATCH] fix deprecation warning use settings attribute --- shared-services/spotifyd.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/shared-services/spotifyd.nix b/shared-services/spotifyd.nix index 7cf79ce..1988632 100644 --- a/shared-services/spotifyd.nix +++ b/shared-services/spotifyd.nix @@ -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 ]; }