Set up mopidy extensions
This commit is contained in:
parent
38d5815291
commit
fd6d86cdef
|
@ -1,6 +1,10 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
soundcloud_token =
|
||||||
|
builtins.readFile /home/coolneng/.config/mopidy/soundcloud-auth;
|
||||||
|
|
||||||
|
in {
|
||||||
# Enable ALSA
|
# Enable ALSA
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|
||||||
|
@ -18,9 +22,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensionPackages = [
|
extensionPackages = [
|
||||||
pkgs.mopidy-mpd
|
pkgs.mopidy-mpd
|
||||||
# pkgs.mopidy-soundcloud
|
pkgs.mopidy-soundcloud
|
||||||
# pkgs.mopidy-youtube
|
pkgs.mopidy-youtube
|
||||||
# pkgs.mopidy-somafm
|
pkgs.mopidy-somafm
|
||||||
];
|
];
|
||||||
configuration = ''
|
configuration = ''
|
||||||
[audio]
|
[audio]
|
||||||
|
@ -50,6 +54,7 @@
|
||||||
|
|
||||||
[soundcloud]
|
[soundcloud]
|
||||||
enabled = false
|
enabled = false
|
||||||
|
auth_token = ${soundcloud_token}
|
||||||
|
|
||||||
[m3u]
|
[m3u]
|
||||||
playlists_dir = /home/coolneng/.config/mpd/playlists
|
playlists_dir = /home/coolneng/.config/mpd/playlists
|
||||||
|
|
Loading…
Reference in New Issue