diff --git a/modules/services/spotify.nix b/modules/services/spotify.nix new file mode 100644 index 0000000..bd9fd33 --- /dev/null +++ b/modules/services/spotify.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: +{ + networking.firewall.allowedUDPPorts = [ 5353 ]; + networking.firewall.allowedTCPPorts = [ 57621 ]; + + # Spotifyd must have credentials, to do so, run: + # spotifyd --username --password + + # If you experience any issues, run: + # rm -fr ~/.cache/spotify + + services.spotifyd = { + enable = true; + settings = { + global = { + username = "Liv"; + password = "foo"; # TODO: add agenix + }; + }; + }; +}