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 ]; }