diff --git a/SwarselSystems.org b/SwarselSystems.org index 175ba1df..dbf53f52 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -6991,35 +6991,38 @@ Also, the system state version is set here. No need to touch it. **** spotifyd #+begin_src nix :tangle profiles/server/common/spotifyd.nix -{ pkgs, lib, config, ... }: -{ - config = lib.mkIf config.swarselsystems.server.spotifyd { - users.groups.spotifyd = { - gid = 65136; - }; + { pkgs, lib, config, ... }: + { + config = lib.mkIf config.swarselsystems.server.spotifyd { + users.groups.spotifyd = { + gid = 65136; + }; - users.users.spotifyd = { - isSystemUser = true; - uid = 65136; - group = "spotifyd"; - extraGroups = [ "audio" "utmp" ]; - }; - services.spotifyd = { - enable = true; - settings = { - global = { - dbus_type = "session"; - use_mpris = false; - device = "default:CARD=PCH"; - device_name = "SwarselSpot"; - mixer = "alsa"; - zeroconf_port = 1025; + users.users.spotifyd = { + isSystemUser = true; + uid = 65136; + group = "spotifyd"; + extraGroups = [ "audio" "utmp" ]; + }; + + networking.firewall.allowedTCPPorts = [ 1025 ]; + + services.spotifyd = { + enable = true; + settings = { + global = { + dbus_type = "session"; + use_mpris = false; + device = "default:CARD=PCH"; + device_name = "SwarselSpot"; + mixer = "alsa"; + zeroconf_port = 1025; + }; }; }; }; - }; -} + } #+end_src **** mpd diff --git a/profiles/server/common/spotifyd.nix b/profiles/server/common/spotifyd.nix index 09bfe420..2ffab464 100644 --- a/profiles/server/common/spotifyd.nix +++ b/profiles/server/common/spotifyd.nix @@ -11,6 +11,9 @@ group = "spotifyd"; extraGroups = [ "audio" "utmp" ]; }; + + networking.firewall.allowedTCPPorts = [ 1025 ]; + services.spotifyd = { enable = true; settings = {