Revert "[spotifyd] Update to lean in on pulseaudio"

This reverts commit b9097e91d5.
This commit is contained in:
2024-11-03 09:50:08 -08:00
parent c7716d2bca
commit ae543d9628
2 changed files with 4 additions and 17 deletions

View File

@@ -19,10 +19,6 @@ with lib;
autologin = true;
wayland = true;
};
spotifyd = {
enable = true;
deviceType = "t_v";
};
users.enable = true;
};

View File

@@ -8,38 +8,29 @@ in
{
options.roles.spotifyd = {
enable = mkEnableOption "Enable the spotifyd role";
deviceType = mkOption {
default = "computer";
};
};
config = mkIf cfg.enable
{
roles.audio.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.extraConfig = ''
unload-module module-native-protocol-unix
load-module module-native-protocol-unix auth-anonymous=1
'';
hardware.pulseaudio.systemWide = true;
services.spotifyd = {
enable = true;
settings = {
global = {
use_mpris = false;
backend = "pulseaudio";
backend = "alsa";
device = "sysdefault";
bitrate = 320;
cache_path = "";
zeroconf_port = 5354;
zeroconf_port = 1234;
autoplay = false;
device_type = cfg.deviceType;
};
};
};
networking.firewall.allowedTCPPorts = [
5354
1234
57621
];
networking.firewall.allowedUDPPorts = [