Skip to content

Commit

Permalink
fix: add missing port for spotifyd [winters]
Browse files Browse the repository at this point in the history
  • Loading branch information
Swarsel committed Sep 28, 2024
1 parent 1bdf529 commit 8af4cb5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 24 deletions.
51 changes: 27 additions & 24 deletions SwarselSystems.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions profiles/server/common/spotifyd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
group = "spotifyd";
extraGroups = [ "audio" "utmp" ];
};

networking.firewall.allowedTCPPorts = [ 1025 ];

services.spotifyd = {
enable = true;
settings = {
Expand Down

0 comments on commit 8af4cb5

Please sign in to comment.