Hardcode playlists
This commit is contained in:
parent
2fce4c27ed
commit
c15212c428
|
@ -1,8 +1,12 @@
|
||||||
{ pkgs, config, ... }: {
|
{ pkgs, config, lib, ... }: {
|
||||||
services = {
|
services = {
|
||||||
mpd = {
|
mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
musicDirectory = "${config.home.homeDirectory}/media/audio";
|
musicDirectory = "${config.home.homeDirectory}/media/audio";
|
||||||
|
playlistDirectory = pkgs.setToDirectories (lib.mapAttrs' (name: content: lib.nameValuePair "${name}.m3u" (builtins.toFile "${name}.m3u" content)) {
|
||||||
|
"radio-swiss-classic" = "https://stream.srg-ssr.ch/m/rsc_de/aacp_96";
|
||||||
|
"br-klassik" = "http://dispatcher.rndfnk.com/br/brklassik/live/mp3/high";
|
||||||
|
});
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
audio_output {
|
audio_output {
|
||||||
type "pulse"
|
type "pulse"
|
||||||
|
|
Loading…
Reference in a new issue