diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-10 22:01:39 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-10 22:01:39 +0200 |
commit | abe88ff0f456d42b30b29ed9e22796a706c6335d (patch) | |
tree | 7ab3c9a98322c0ebdda15985cffe3293cb676eb9 /modules/home/conf/mpd | |
parent | feat(home/beets): Add `duplicates` plugin (diff) | |
download | nixos-config-abe88ff0f456d42b30b29ed9e22796a706c6335d.zip |
feat(home/{beets, mpd}): Setup further plugins
Diffstat (limited to 'modules/home/conf/mpd')
-rw-r--r-- | modules/home/conf/mpd/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
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" |