Spotify: Difference between revisions

From NixOS Wiki
imported>Fadenb
mNo edit summary
imported>Valodim
add info about spotifyd
Line 7: Line 7:
<syntaxhighlight lang=nix>
<syntaxhighlight lang=nix>
networking.firewall.allowedTCPPorts = [ 57621 ];</syntaxhighlight>
networking.firewall.allowedTCPPorts = [ 57621 ];</syntaxhighlight>
=== spotifyd ===
The alternative client [https://github.com/Spotifyd/spotifyd spotifyd] is available as a package, [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/audio/spotifyd.nix nixos module], and [https://github.com/nix-community/home-manager/blob/master/modules/services/spotifyd.nix home-manager module].
spotifyd connects to spotify as a spotify-connect device. It offers no controls of its own, but can be controlled via [https://github.com/altdesktop/playerctl playerctl]  or [https://github.com/Rigellute/spotify-tui spotify-tui].

Revision as of 14:45, 5 December 2020

Spotify

Note: Spotify is unfree, its license prohibits distribution. See the FAQ/unfree page to install unfree software.

Local discovery

To sync local tracks from your filesystem with mobile devices in the same network, you need to open port 57621 by adding the following line to your configuration.nix:

networking.firewall.allowedTCPPorts = [ 57621 ];

spotifyd

The alternative client spotifyd is available as a package, nixos module, and home-manager module.

spotifyd connects to spotify as a spotify-connect device. It offers no controls of its own, but can be controlled via playerctl or spotify-tui.