ansible/roles/music/templates/librespot.service
polyfloyd 43075d27fe music/librespot: Various tweaks
* Use pulseaudio backend
* Run as separate librespot user
* Use linear volume mixer
2025-05-14 20:28:21 +02:00

17 lines
418 B
Desktop File

# {{ ansible_managed }}
[Unit]
Description=Spotify through Librespot
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=2s
ExecStart=/opt/librespot/target/release/librespot --name Trollibox --backend pulseaudio --volume-ctrl linear
Environment="PULSE_SERVER=/tmp/pipewire-pulse-socket"
Environment="XDG_RUNTIME_DIR=/run/user/0"
User={{ music_librespot_user }}
[Install]
WantedBy=multi-user.target