music: Add Librespot

This commit is contained in:
polyfloyd 2022-04-15 11:58:11 +02:00
parent 7356db2b8a
commit 2a54ec3ec6
4 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#
# Managed by Ansible
#
[Unit]
Description=Spotify through Librespot
After=network.target
Requires=jackd.service
[Service]
Type=simple
Restart=always
RestartSec=2s
ExecStart=/opt/librespot/target/release/librespot --name Trollibox --backend jackaudio
User={{ music_audio_user }}
Group={{ music_audio_user }}
AmbientCapabilities=CAP_IPC_LOCK,CAP_SYS_NICE
[Install]
WantedBy=multi-user.target