mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds spotify-connect service
This commit is contained in:
parent
7fc507fc71
commit
ae6b3dfc88
1 changed files with 21 additions and 0 deletions
21
modules/services/spotify.nix
Normal file
21
modules/services/spotify.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{ 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
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue