2022-01-18 09:32:55 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
mpdDir = "${config.home.homeDirectory}/.mpd";
|
|
|
|
in {
|
|
|
|
imports = [ ./common.nix ];
|
|
|
|
home.packages = [ pkgs.mpc_cli ];
|
|
|
|
home.file.".mpd/mpd.conf".text = ''
|
2022-02-10 11:47:45 +01:00
|
|
|
music_directory "https://dav.monotremata.xyz/music"
|
2022-01-18 09:32:55 +01:00
|
|
|
playlist_directory "${mpdDir}/playlists"
|
|
|
|
log_file "${mpdDir}/mpd.log"
|
|
|
|
pid_file "${mpdDir}/mpd.pid"
|
|
|
|
state_file "${mpdDir}/mpdstate"
|
2022-02-10 11:47:45 +01:00
|
|
|
|
|
|
|
database {
|
|
|
|
plugin "proxy"
|
|
|
|
host "narwhal"
|
|
|
|
port "6600"
|
|
|
|
}
|
2022-01-18 09:32:55 +01:00
|
|
|
|
|
|
|
audio_output {
|
|
|
|
type "osx"
|
|
|
|
name "CoreAudio"
|
|
|
|
mixer_type "software"
|
|
|
|
}
|
|
|
|
|
|
|
|
decoder {
|
|
|
|
plugin "mp4ff"
|
|
|
|
enabled "no"
|
|
|
|
}
|
|
|
|
|
|
|
|
bind_to_address "0.0.0.0"
|
|
|
|
port "6600"
|
|
|
|
user "rilla"
|
|
|
|
'';
|
|
|
|
}
|