nix-config/home/mpd/macos.nix

48 lines
968 B
Nix
Raw Normal View History

2022-01-18 09:32:55 +01:00
{ config, pkgs, ... }:
let
musicDir = "${config.home.homeDirectory}/shared/music";
mpdDir = "${config.home.homeDirectory}/.mpd";
in {
imports = [ ./common.nix ];
home.packages = [ pkgs.mpc_cli ];
home.file.".mpd/mpd.conf".text = ''
music_directory "${musicDir}"
playlist_directory "${mpdDir}/playlists"
db_file "${mpdDir}/mpd.db"
log_file "${mpdDir}/mpd.log"
pid_file "${mpdDir}/mpd.pid"
state_file "${mpdDir}/mpdstate"
auto_update "yes"
auto_update_depth "2"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
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"
# Visualizer
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
auto_resample "no"
use_mmap "yes"
}
'';
}