move macos's mpd config to satellite
parent
7440405010
commit
9f72221bf4
|
@ -1,22 +1,22 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
musicDir = "${config.home.homeDirectory}/Music";
|
||||
mpdDir = "${config.home.homeDirectory}/.mpd";
|
||||
in {
|
||||
imports = [ ./common.nix ];
|
||||
home.packages = [ pkgs.mpc_cli ];
|
||||
home.file.".mpd/mpd.conf".text = ''
|
||||
music_directory "${musicDir}"
|
||||
music_directory "https://dav.monotremata.xyz/music"
|
||||
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"
|
||||
|
||||
database {
|
||||
plugin "proxy"
|
||||
host "narwhal"
|
||||
port "6600"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "osx"
|
||||
|
@ -32,16 +32,5 @@ in {
|
|||
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"
|
||||
}
|
||||
'';
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue