From ebf773758a6d858eb1150920b618d222489be3fc Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 9 Feb 2022 20:16:01 +0100 Subject: [PATCH] mpd satellite setup --- home/mpd/default.nix | 8 +++++++- trantor.nix | 12 ++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/home/mpd/default.nix b/home/mpd/default.nix index 7742f15..f7a290b 100644 --- a/home/mpd/default.nix +++ b/home/mpd/default.nix @@ -1,12 +1,13 @@ { config, pkgs, ... }: -let musicDir = "${config.home.homeDirectory}/Music"; +let musicDir = "https://dav.monotremata.xyz/music"; in { imports = [ ./common.nix ]; home.packages = [ pkgs.mpc_cli ]; services.mpd = { enable = true; musicDirectory = musicDir; + dbFile = null; network = { listenAddress = "any"; port = 6600; @@ -22,6 +23,11 @@ in { path "/tmp/mpd.fifo" format "44100:16:2" } + database { + plugin "proxy" + host "narwhal" + port "6600" + } ''; }; } diff --git a/trantor.nix b/trantor.nix index dd3c600..ea08aae 100644 --- a/trantor.nix +++ b/trantor.nix @@ -25,12 +25,12 @@ in { fsType = "vfat"; }; - "/home/rilla/Music" = { - device = "narwhal:/music"; - fsType = "nfs"; - options = - [ "nfsvers=4" "x-systemd.automount" "x-systemd.idle-timeout=1min" ]; - }; + #"/home/rilla/Music" = { + # device = "narwhal:/music"; + # fsType = "nfs"; + # options = + # [ "nfsvers=4" "x-systemd.automount" "x-systemd.idle-timeout=1min" ]; + #}; "/home/rilla/calibre" = { device = "narwhal:/calibre";