2019-08-06 10:56:54 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
mpc_cli
|
|
|
|
];
|
|
|
|
|
2020-03-28 22:48:43 -07:00
|
|
|
my.env.MPD_HOME = "$XDG_CONFIG_HOME/mpd";
|
|
|
|
|
2019-08-06 10:56:54 -07:00
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
musicDirectory = "/home/hlissner/music";
|
|
|
|
startWhenNeeded = true;
|
|
|
|
extraConfig = ''
|
|
|
|
input {
|
|
|
|
plugin "curl"
|
|
|
|
}
|
|
|
|
audio_output {
|
|
|
|
type "pulse"
|
|
|
|
name "pulse audio"
|
|
|
|
}
|
|
|
|
audio_output {
|
|
|
|
type "fifo"
|
|
|
|
name "mpd_fifo"
|
|
|
|
path "/tmp/mpd.fifo"
|
|
|
|
format "44100:16:2"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|