fix: add missing port for spotifyd [winters]

This commit is contained in:
Swarsel 2024-09-28 15:13:28 +02:00
parent 1bdf5292e8
commit 8af4cb511e
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
2 changed files with 30 additions and 24 deletions

View file

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

View file

@ -11,6 +11,9 @@
group = "spotifyd"; group = "spotifyd";
extraGroups = [ "audio" "utmp" ]; extraGroups = [ "audio" "utmp" ];
}; };
networking.firewall.allowedTCPPorts = [ 1025 ];
services.spotifyd = { services.spotifyd = {
enable = true; enable = true;
settings = { settings = {