nix-dotfiles/home/services/mpd.nix

26 lines
508 B
Nix
Raw Normal View History

2022-03-07 16:01:52 +01:00
{ config, ... }:
{
services.mpd = rec {
enable = true;
musicDirectory = config.xdg.userDirs.music;
2022-03-07 16:01:52 +01:00
playlistDirectory = "${musicDirectory}/playlists/MPD";
2024-06-25 19:02:20 +02:00
network.startWhenNeeded = true;
# TODO: make the path specific to the user unit
extraConfig = ''
audio_output {
type "fifo"
name "Visualizer feed"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
audio_output {
type "pulse"
name "PulseAudio"
}
'';
2022-03-07 16:01:52 +01:00
};
}