From abe88ff0f456d42b30b29ed9e22796a706c6335d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 10 Aug 2024 22:01:39 +0200 Subject: feat(home/{beets, mpd}): Setup further plugins --- modules/home/conf/mpd/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/home/conf/mpd/default.nix') diff --git a/modules/home/conf/mpd/default.nix b/modules/home/conf/mpd/default.nix index 3b8d2052..b30f6995 100644 --- a/modules/home/conf/mpd/default.nix +++ b/modules/home/conf/mpd/default.nix @@ -14,19 +14,21 @@ in { }; systemd.user.services.mpd.Service.ExecStartPre = lib.mkForce '' - ${pkgs.coreutils}/bin/mkdir -p "${dataDir}" "${playlistDirectory}" "${runtimeDir}" + ${pkgs.coreutils}/bin/mkdir --parents "${dataDir}" "${playlistDirectory}" "${runtimeDir}" ''; services.mpd = { enable = true; - inherit dataDir; + inherit dataDir playlistDirectory; musicDirectory = config.programs.beets.settings.directory; network = { listenAddress = "${runtimeDir}/socket"; }; + extraConfig = '' metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc,comment" - auto_update "yes" + # Updated by the beets `mpdupdate` plugin + auto_update "no" audio_output { type "pipewire" -- cgit 1.4.1