17 lines
383 B
Nix
17 lines
383 B
Nix
{ pkgs, config, ... }: {
|
|
services = {
|
|
mpd = {
|
|
enable = true;
|
|
network.listenAddress = "::1";
|
|
musicDirectory = "${config.home.homeDirectory}/media/audio";
|
|
extraConfig = ''
|
|
audio_output {
|
|
type "pulse"
|
|
name "Pulseaudio"
|
|
server "localhost"
|
|
}
|
|
'';
|
|
};
|
|
mpdris2 = { enable = true; };
|
|
};
|
|
}
|