nixos-configs/users/froidmpa/mpd.nix

27 lines
739 B
Nix
Raw Normal View History

2022-07-27 03:30:00 +02:00
{ config, lib, pkgs, ... }:
2021-07-16 21:09:58 +02:00
{
2022-07-27 03:30:00 +02:00
services.mpd =
{
enable = true;
network.listenAddress = "any";
musicDirectory = "${config.home.homeDirectory}/Nextcloud/Media/Music";
playlistDirectory = "${config.home.homeDirectory}/Nextcloud/Playlists";
extraConfig = ''
max_output_buffer_size "16384"
auto_update "yes"
audio_output {
type "pulse"
name "pulse audio"
device "pulse"
mixer_type "hardware"
}
audio_output {
type "fifo"
name "toggle_visualizer"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
'';
};
2021-07-16 21:09:58 +02:00
}