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, ... }: { config, pkgs, ... }:
let let
musicDir = "${config.home.homeDirectory}/Music";
mpdDir = "${config.home.homeDirectory}/.mpd"; mpdDir = "${config.home.homeDirectory}/.mpd";
in { in {
imports = [ ./common.nix ]; imports = [ ./common.nix ];
home.packages = [ pkgs.mpc_cli ]; home.packages = [ pkgs.mpc_cli ];
home.file.".mpd/mpd.conf".text = '' home.file.".mpd/mpd.conf".text = ''
music_directory "${musicDir}" music_directory "https://dav.monotremata.xyz/music"
playlist_directory "${mpdDir}/playlists" playlist_directory "${mpdDir}/playlists"
db_file "${mpdDir}/mpd.db"
log_file "${mpdDir}/mpd.log" log_file "${mpdDir}/mpd.log"
pid_file "${mpdDir}/mpd.pid" pid_file "${mpdDir}/mpd.pid"
state_file "${mpdDir}/mpdstate" state_file "${mpdDir}/mpdstate"
auto_update "yes"
auto_update_depth "2" database {
follow_outside_symlinks "yes" plugin "proxy"
follow_inside_symlinks "yes" host "narwhal"
port "6600"
}
audio_output { audio_output {
type "osx" type "osx"
@ -32,16 +32,5 @@ in {
bind_to_address "0.0.0.0" bind_to_address "0.0.0.0"
port "6600" port "6600"
user "rilla" user "rilla"
# Visualizer
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
auto_resample "no"
use_mmap "yes"
}
''; '';
} }