From ae6b3dfc8831d8c9c9ebd89aba2f9068fd13fc14 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 21 Jun 2024 11:54:28 +0200 Subject: [PATCH] feat: adds spotify-connect service --- modules/services/spotify.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/services/spotify.nix 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 + }; + }; + }; +}