Set up mopidy extensions

This commit is contained in:
coolneng 2020-06-01 19:38:59 +02:00
parent 38d5815291
commit fd6d86cdef
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,10 @@
{ config, lib, pkgs, ... }:
{
let
soundcloud_token =
builtins.readFile /home/coolneng/.config/mopidy/soundcloud-auth;
in {
# Enable ALSA
sound.enable = true;
@ -18,9 +22,9 @@
enable = true;
extensionPackages = [
pkgs.mopidy-mpd
# pkgs.mopidy-soundcloud
# pkgs.mopidy-youtube
# pkgs.mopidy-somafm
pkgs.mopidy-soundcloud
pkgs.mopidy-youtube
pkgs.mopidy-somafm
];
configuration = ''
[audio]
@ -50,6 +54,7 @@
[soundcloud]
enabled = false
auth_token = ${soundcloud_token}
[m3u]
playlists_dir = /home/coolneng/.config/mpd/playlists