nixos-config/modules/services/spotify.nix

22 lines
459 B
Nix
Raw Permalink Normal View History

2024-06-21 11:54:28 +02:00
{ pkgs, ... }:
{
networking.firewall.allowedUDPPorts = [ 5353 ];
networking.firewall.allowedTCPPorts = [ 57621 ];
# Spotifyd must have credentials, to do so, run:
# spotifyd --username <USER> --password <PASS>
# If you experience any issues, run:
# rm -fr ~/.cache/spotify
services.spotifyd = {
enable = true;
settings = {
global = {
username = "Liv";
password = "foo"; # TODO: add agenix
};
};
};
}