move macos's mpd config to satellite

feat/kile-v2
Ricard Illa 2022-02-10 11:47:45 +01:00
parent 7440405010
commit 9f72221bf4
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 7 additions and 18 deletions

View File

@ -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"
}
'';
}