29 lines
545 B
Nix
29 lines
545 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
mpc_cli
|
||
|
];
|
||
|
|
||
|
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"
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
}
|