commit 7c1a7082c9cdbb2b2beeaa4a54d88902ac950c0e
parent b095220581776b0726817102e0f84c8743fabe2a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 19:35:57 +0100
parent b095220581776b0726817102e0f84c8743fabe2a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 19:35:57 +0100
programs/spotifyd: add program
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/configurations/programs/spotifyd.nix b/configurations/programs/spotifyd.nix @@ -0,0 +1,28 @@ +{ pkgs, ... }: + +{ + networking.firewall.allowedUDPPorts = [ 57621 ]; + networking.firewall.allowedTCPPorts = [ 33903 57621 ]; + + home-manager.users.leah = { + services.spotifyd = { + enable = true; + settings = { + global = { + #todo: find something to manage secrets + use_mpris = true; + backend = "pulseaudio"; + bitrate = 320; + cache_path = "/home/leah/.cache/spotifyd"; + initial_volume = "80"; + zeroconf_port = 33903; + device_type = "speaker"; + }; + }; + }; + + wayland.windowManager.sway.extraConfig = '' + exec_always 'systemctl --user restart spotifyd' + ''; + }; +}