From fd6d86cdef1d500f33a73f1bf885999e69bce527 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 1 Jun 2020 19:38:59 +0200 Subject: [PATCH] Set up mopidy extensions --- modules/audio.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/audio.nix b/modules/audio.nix index 7fa89e9..73b36f5 100644 --- a/modules/audio.nix +++ b/modules/audio.nix @@ -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