From 9f72221bf44fe181ff00ee312ae46e85169f79d1 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Thu, 10 Feb 2022 11:47:45 +0100 Subject: [PATCH] move macos's mpd config to satellite --- home/mpd/macos.nix | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/home/mpd/macos.nix b/home/mpd/macos.nix index d92a4c6..a7ec045 100644 --- a/home/mpd/macos.nix +++ b/home/mpd/macos.nix @@ -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" - } ''; - }