mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
fix: add missing port for spotifyd [winters]
This commit is contained in:
parent
1bdf5292e8
commit
8af4cb511e
2 changed files with 30 additions and 24 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue